mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-28 19:20:54 +00:00
btstack_debug: use BTSTACK_FILE__ define
This commit is contained in:
parent
0d5520a9a5
commit
a981810d12
@ -55,8 +55,8 @@
|
||||
#endif
|
||||
|
||||
// fallback to __FILE__ for untagged files
|
||||
#ifndef __BTSTACK_FILE__
|
||||
#define __BTSTACK_FILE__ __FILE__
|
||||
#ifndef BTSTACK_FILE__
|
||||
#define BTSTACK_FILE__ __FILE__
|
||||
#endif
|
||||
|
||||
// Avoid complaints of unused arguments when log levels are disabled.
|
||||
@ -74,9 +74,9 @@ static inline void __log_unused(const char *format, ...) {
|
||||
#endif
|
||||
|
||||
#ifdef __AVR__
|
||||
#define HCI_DUMP_LOG(log_level, format, ...) hci_dump_log_P(log_level, PSTR("%s.%u: " format), __BTSTACK_FILE__, __LINE__, ## __VA_ARGS__)
|
||||
#define HCI_DUMP_LOG(log_level, format, ...) hci_dump_log_P(log_level, PSTR("%s.%u: " format), BTSTACK_FILE__, __LINE__, ## __VA_ARGS__)
|
||||
#else
|
||||
#define HCI_DUMP_LOG(log_level, format, ...) hci_dump_log(log_level, "%s.%u: " format, __BTSTACK_FILE__, __LINE__, ## __VA_ARGS__)
|
||||
#define HCI_DUMP_LOG(log_level, format, ...) hci_dump_log(log_level, "%s.%u: " format, BTSTACK_FILE__, __LINE__, ## __VA_ARGS__)
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_LOG_DEBUG
|
||||
|
Loading…
x
Reference in New Issue
Block a user