Bluetooth: Include context ID in debug logs
Including the context ID in debug logs can help track down various issues, e.g. stack corruption. Change-Id: I3cd70edd5bfd1d726f6d35e7331afb313cf3cacb Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
8930a13b60
commit
d6600e075f
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@
|
|||
/* Bluetooth subsystem logging helpers */
|
||||
|
||||
#if defined(CONFIG_BLUETOOTH_DEBUG)
|
||||
#define BT_DBG(fmt, ...) printf("bt: %s: " fmt, __func__, ##__VA_ARGS__)
|
||||
#define BT_DBG(fmt, ...) printf("bt: %s (%x): " fmt, __func__, \
|
||||
context_self_get(), ##__VA_ARGS__)
|
||||
#else
|
||||
#define BT_DBG(fmt, ...)
|
||||
#endif /* CONFIG_BLUETOOTH_DEBUG */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue