mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-08-10 12:07:55 +00:00
apps/bttester: Fix debug logging
This commit is contained in:
@@ -177,7 +177,7 @@ static void cmd_handler(struct os_event *ev)
|
||||
cmd = ev->ev_arg;
|
||||
|
||||
len = sys_le16_to_cpu(cmd->hdr.len);
|
||||
if (MYNEWT_VAL(BTTESTER_DEBUG)) {
|
||||
if (MYNEWT_VAL(BTTESTER_BTP_LOG)) {
|
||||
console_printf("[DBG] received %d bytes: %s\n",
|
||||
sizeof(cmd->hdr) + len,
|
||||
bt_hex(cmd->data,
|
||||
@@ -316,7 +316,7 @@ void tester_send(u8_t service, u8_t opcode, u8_t index, u8_t *data,
|
||||
bttester_pipe_send(data, len);
|
||||
}
|
||||
|
||||
if (MYNEWT_VAL(BTTESTER_DEBUG)) {
|
||||
if (MYNEWT_VAL(BTTESTER_BTP_LOG)) {
|
||||
console_printf("[DBG] send %d bytes hdr: %s\n", sizeof(msg),
|
||||
bt_hex((char *) &msg, sizeof(msg)));
|
||||
if (data && len) {
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
#define SYS_LOG_DBG(fmt, ...) \
|
||||
if (MYNEWT_VAL(BTTESTER_DEBUG)) { \
|
||||
console_printf("[INF] %s: " fmt "\n", \
|
||||
console_printf("[DBG] %s: " fmt "\n", \
|
||||
__func__, ## __VA_ARGS__); \
|
||||
}
|
||||
#define SYS_LOG_INF(fmt, ...) console_printf("[INF] %s: " fmt "\n", \
|
||||
|
||||
@@ -55,6 +55,10 @@ syscfg.defs:
|
||||
description: Enable debug logging
|
||||
value: 1
|
||||
|
||||
BTTESTER_BTP_LOG:
|
||||
description: Enable logging BTP traffic
|
||||
value: 0
|
||||
|
||||
syscfg.vals:
|
||||
OS_MAIN_STACK_SIZE: 12444
|
||||
SHELL_TASK: 1
|
||||
|
||||
Reference in New Issue
Block a user