Skip to content

Commit f5a3d7d

Browse files
maass-hamburgfabiobaltieri
authored andcommitted
mgmt: hawkbit: log start of autohandler from shell
If the run of the autohandler is started from shell, it will be logged. Signed-off-by: Fin Maaß <[email protected]>
1 parent 4655ef3 commit f5a3d7d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

subsys/mgmt/hawkbit/shell.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313
#include "hawkbit_firmware.h"
1414
#include "hawkbit_device.h"
1515

16+
LOG_MODULE_DECLARE(hawkbit, CONFIG_HAWKBIT_LOG_LEVEL);
17+
1618
static void cmd_run(const struct shell *sh, size_t argc, char **argv)
1719
{
1820
ARG_UNUSED(argc);
1921
ARG_UNUSED(argv);
2022

21-
23+
LOG_INF("Run started from %s", sh->name);
2224
shell_info(sh, "Starting hawkBit run...");
25+
2326
hawkbit_autohandler(false);
2427

2528
switch (hawkbit_autohandler_wait(UINT32_MAX, K_FOREVER)) {

0 commit comments

Comments
 (0)