diff mbox series

[BlueZ,1/5] att: Log file and function names

Message ID 20220321205529.2469387-1-luiz.dentz@gmail.com
State Superseded
Headers show
Series [BlueZ,1/5] att: Log file and function names | expand

Commit Message

Luiz Augusto von Dentz March 21, 2022, 8:55 p.m. UTC
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(-)

Comments

bluez.test.bot@gmail.com March 22, 2022, 12:33 a.m. UTC | #1
This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=625273

---Test result---

Test Summary:
CheckPatch                    PASS      7.48 seconds
GitLint                       PASS      5.00 seconds
Prep - Setup ELL              PASS      44.76 seconds
Build - Prep                  PASS      0.75 seconds
Build - Configure             PASS      9.00 seconds
Build - Make                  PASS      1526.60 seconds
Make Check                    PASS      11.54 seconds
Make Check w/Valgrind         PASS      461.85 seconds
Make Distcheck                PASS      264.50 seconds
Build w/ext ELL - Configure   PASS      9.28 seconds
Build w/ext ELL - Make        PASS      1521.31 seconds
Incremental Build with patchesPASS      7600.04 seconds



---
Regards,
Linux Bluetooth
patchwork-bot+bluetooth@kernel.org March 24, 2022, 7:50 p.m. UTC | #2
Hello:

This series was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Mon, 21 Mar 2022 13:55:25 -0700 you wrote:
> 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(-)

Here is the summary with links:
  - [BlueZ,1/5] att: Log file and function names
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=8039d42687fd
  - [BlueZ,2/5] device: Don't use DBG in gatt_debug
    (no matching commit)
  - [BlueZ,3/5] gatt-client: Add DBG macro
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=e0870ce5e1fe
  - [BlueZ,4/5] gatt-server: Add DBG macro
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=55c25d91e4d6
  - [BlueZ,5/5] att: Rename att_debug and att_verbose to DBG and VERBOSE
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=e1b808c128fa

You are awesome, thank you!
diff mbox series

Patch

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)