Skip to content

Commit d699e8c

Browse files
sjancdkalowsk
authored andcommitted
Bluetooth: Host: Make error messages unique
Both bt_le_adv_stop() and bt_le_adv_resume() were logging same error message. Add aditional context to it so that logs are distinguishable. Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
1 parent 9e5e294 commit d699e8c

File tree

1 file changed

+2
-2
lines changed
  • subsys/bluetooth/host

1 file changed

+2
-2
lines changed

subsys/bluetooth/host/adv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ int bt_le_adv_stop(void)
14441444
int err;
14451445

14461446
if (!adv) {
1447-
LOG_ERR("No valid legacy adv");
1447+
LOG_ERR("No valid legacy adv to stop");
14481448
return 0;
14491449
}
14501450

@@ -1529,7 +1529,7 @@ void bt_le_adv_resume(void)
15291529
int err;
15301530

15311531
if (!adv) {
1532-
LOG_ERR("No valid legacy adv");
1532+
LOG_ERR("No valid legacy adv to resume");
15331533
return;
15341534
}
15351535

0 commit comments

Comments
 (0)