Bluetooth: Add log_strdup() to BT_ERR string arguments
Wrap string arguments to BT_ERR in log_strdup(). Signed-off-by: Asbjørn Sæbø <asbjorn.sabo@nordicsemi.no>
This commit is contained in:
parent
d2c1da1335
commit
56e6b99a69
1 changed files with 2 additions and 2 deletions
|
@ -3670,7 +3670,7 @@ static int ccc_set(const char *name, size_t len_rd, settings_read_cb read_cb,
|
|||
|
||||
err = bt_settings_decode_key(name, &addr);
|
||||
if (err) {
|
||||
BT_ERR("Unable to decode address %s", name);
|
||||
BT_ERR("Unable to decode address %s", log_strdup(name));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
@ -3721,7 +3721,7 @@ static int cf_set(const char *name, size_t len_rd, settings_read_cb read_cb,
|
|||
|
||||
err = bt_settings_decode_key(name, &addr);
|
||||
if (err) {
|
||||
BT_ERR("Unable to decode address %s", name);
|
||||
BT_ERR("Unable to decode address %s", log_strdup(name));
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue