public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: 294305068@qq.com
To: linux-bluetooth@vger.kernel.org
Cc: caitao <caitao@kylinos.cn>
Subject: [PATCH BlueZ] src/log.h: Add line number information to log output.
Date: Fri,  3 Apr 2026 13:18:40 +0800	[thread overview]
Message-ID: <tencent_B48D92FA1FDAD2A12B772500611B6FE3AD05@qq.com> (raw)

From: caitao <caitao@kylinos.cn>

---
 src/log.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/log.h b/src/log.h
index 1ed742a0d..14b54194e 100644
--- a/src/log.h
+++ b/src/log.h
@@ -57,8 +57,8 @@ void __btd_enable_debug(struct btd_debug_desc *start,
 } while (0)
 
 #define DBG(fmt, arg...) \
-	DBG_IDX(0xffff, "%s:%s() " fmt, __FILE__, __func__, ## arg)
+	DBG_IDX(0xffff, "%s:%s():%u " fmt, __FILE__, __func__, __LINE__, ## arg)
 #define error(fmt, arg...) \
-	btd_error(0xffff, "%s:%s() " fmt, __FILE__, __func__, ## arg)
+	btd_error(0xffff, "%s:%s():%u " fmt, __FILE__, __func__, __LINE__, ## arg)
 #define warn(fmt, arg...) \
-	btd_warn(0xffff, "%s:%s() " fmt, __FILE__, __func__, ## arg)
+	btd_warn(0xffff, "%s:%s():%u " fmt, __FILE__, __func__, __LINE__, ## arg)
-- 
2.43.0



             reply	other threads:[~2026-04-03  5:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-03  5:18 294305068 [this message]
2026-04-03  6:12 ` [BlueZ] src/log.h: Add line number information to log output bluez.test.bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=tencent_B48D92FA1FDAD2A12B772500611B6FE3AD05@qq.com \
    --to=294305068@qq.com \
    --cc=caitao@kylinos.cn \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox