Bluetooth: nble: Implement ble_log
Implement using printf(), to make correct stack use define check. Change-Id: I81894ccb511f921a5fcff37d85790191251d683f Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
f8f24d7661
commit
e8ffda4a73
1 changed files with 7 additions and 1 deletions
|
@ -244,7 +244,13 @@ void on_ble_gap_dtm_init_rsp(void *user_data)
|
|||
|
||||
void ble_log(const struct ble_log_s *param, char *format, uint8_t len)
|
||||
{
|
||||
BT_DBG("");
|
||||
#if defined(CONFIG_BLUETOOTH_DEBUG)
|
||||
/* Build meaningful output */
|
||||
printf("nble: ");
|
||||
printf(format, param->param0, param->param1, param->param2,
|
||||
param->param3);
|
||||
printf("\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
void on_ble_gap_connect_evt(const struct ble_gap_connect_evt *ev)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue