all: logging: Remove log_strdup function
Logging v1 has been removed and log_strdup wrapper function is no longer needed. Removing the function and its use in the tree. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
59a0e5e645
commit
041f0e5379
134 changed files with 744 additions and 823 deletions
|
@ -92,14 +92,10 @@ const char *bt_addr_str_real(const bt_addr_t *addr);
|
|||
const char *bt_addr_le_str_real(const bt_addr_le_t *addr);
|
||||
const char *bt_uuid_str_real(const struct bt_uuid *uuid);
|
||||
|
||||
/* NOTE: log_strdup does not guarantee a duplication of the string.
|
||||
* It is therefore still the responsibility of the user to handle the
|
||||
* restrictions in the underlying function call.
|
||||
*/
|
||||
#define bt_hex(buf, len) log_strdup(bt_hex_real(buf, len))
|
||||
#define bt_addr_str(addr) log_strdup(bt_addr_str_real(addr))
|
||||
#define bt_addr_le_str(addr) log_strdup(bt_addr_le_str_real(addr))
|
||||
#define bt_uuid_str(uuid) log_strdup(bt_uuid_str_real(uuid))
|
||||
#define bt_hex(buf, len) bt_hex_real(buf, len)
|
||||
#define bt_addr_str(addr) bt_addr_str_real(addr)
|
||||
#define bt_addr_le_str(addr) bt_addr_le_str_real(addr)
|
||||
#define bt_uuid_str(uuid) bt_uuid_str_real(uuid)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue