Skip to content

Commit e9a416f

Browse files
carlescufijhedberg
authored andcommitted
Bluetooth: tester: Add missing log_strdup
Since we enable CONFIG_ASSERT in the tester app, the logging subsystem will assert if it detects a missing log_strdup. Add the two missing ones that I could find to properly log transient strings. Signed-off-by: Carles Cufi <[email protected]>
1 parent a410486 commit e9a416f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/bluetooth/tester/src/gatt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1858,7 +1858,7 @@ static void get_attrs(u8_t *data, u16_t len)
18581858

18591859
bt_uuid_to_str(&uuid.uuid, uuid_str, sizeof(uuid_str));
18601860
LOG_DBG("start 0x%04x end 0x%04x, uuid %s", start_handle,
1861-
end_handle, uuid_str);
1861+
end_handle, log_strdup(uuid_str));
18621862

18631863
foreach.uuid = &uuid.uuid;
18641864
} else {

tests/bluetooth/tester/src/mesh.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ static int output_string(const char *str)
314314
struct mesh_out_string_action_ev *ev;
315315
struct net_buf_simple *buf = NET_BUF_SIMPLE(BTP_DATA_MAX_SIZE);
316316

317-
LOG_DBG("str %s", str);
317+
LOG_DBG("str %s", log_strdup(str));
318318

319319
net_buf_simple_init(buf, 0);
320320

0 commit comments

Comments
 (0)