All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 1/5] att: Log file and function names
@ 2022-03-21 20:55 Luiz Augusto von Dentz
  2022-03-21 20:55 ` [PATCH BlueZ 2/5] device: Don't use DBG in gatt_debug Luiz Augusto von Dentz
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Luiz Augusto von Dentz @ 2022-03-21 20:55 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This adds logging of file and function names.
---
 src/shared/att.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/shared/att.c b/src/shared/att.c
index 169f726e4..7344b0c46 100644
--- a/src/shared/att.c
+++ b/src/shared/att.c
@@ -308,10 +308,12 @@ static void att_log(struct bt_att *att, uint8_t level, const char *format,
 }
 
 #define att_debug(_att, _format, _arg...) \
-	att_log(_att, BT_ATT_DEBUG, _format, ## _arg)
+	att_log(_att, BT_ATT_DEBUG, "%s:%s() " _format, __FILE__, __func__,\
+		## _arg)
 
 #define att_verbose(_att, _format, _arg...) \
-	att_log(_att, BT_ATT_DEBUG_VERBOSE, _format, ## _arg)
+	att_log(_att, BT_ATT_DEBUG_VERBOSE, "%s:%s() " _format, __FILE__, \
+		__func__, ## _arg)
 
 static void att_hexdump(struct bt_att *att, char dir, const void *data,
 							size_t len)
-- 
2.35.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-03-24 19:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-21 20:55 [PATCH BlueZ 1/5] att: Log file and function names Luiz Augusto von Dentz
2022-03-21 20:55 ` [PATCH BlueZ 2/5] device: Don't use DBG in gatt_debug Luiz Augusto von Dentz
2022-03-21 20:55 ` [PATCH BlueZ 3/5] gatt-client: Add DBG macro Luiz Augusto von Dentz
2022-03-21 20:55 ` [PATCH BlueZ 4/5] gatt-server: " Luiz Augusto von Dentz
2022-03-21 20:55 ` [PATCH BlueZ 5/5] att: Rename att_debug and att_verbose to DBG and VERBOSE Luiz Augusto von Dentz
2022-03-22  0:33 ` [BlueZ,1/5] att: Log file and function names bluez.test.bot
2022-03-24 19:50 ` [PATCH BlueZ 1/5] " patchwork-bot+bluetooth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.