mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-15 16:24:28 +08:00
log: Don't log __FILE__ and __func__ with DBG_IDX
This removes __FILE__ and __func__ from DBG_IDX since users of it may already contain such information embedded in the format.
This commit is contained in:
parent
41f8c466f3
commit
a3c9409035
@ -9,6 +9,7 @@
|
||||
*/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
void info(const char *format, ...) __attribute__((format(printf, 1, 2)));
|
||||
|
||||
@ -52,10 +53,11 @@ void __btd_enable_debug(struct btd_debug_desc *start,
|
||||
.file = __FILE__, .flags = BTD_DEBUG_FLAG_DEFAULT, \
|
||||
}; \
|
||||
if (__btd_debug_desc.flags & BTD_DEBUG_FLAG_PRINT) \
|
||||
btd_debug(idx, "%s:%s() " fmt, __FILE__, __func__ , ## arg); \
|
||||
btd_debug(idx, fmt, ## arg); \
|
||||
} while (0)
|
||||
|
||||
#define DBG(fmt, arg...) DBG_IDX(0xffff, fmt, ## arg)
|
||||
#define DBG(fmt, arg...) \
|
||||
DBG_IDX(0xffff, "%s:%s() " fmt, __FILE__, __func__, ## arg)
|
||||
#define error(fmt, arg...) \
|
||||
btd_error(0xffff, "%s:%s() " fmt, __FILE__, __func__, ## arg)
|
||||
#define warn(fmt, arg...) \
|
||||
|
Loading…
Reference in New Issue
Block a user