From: Szymon Janc <szymon.janc@tieto.com>
To: linux-bluetooth@vger.kernel.org
Cc: Szymon Janc <szymon.janc@tieto.com>
Subject: [PATCH 3/6] adapter: Print debug message with IPC message header parameters
Date: Tue, 22 Oct 2013 18:47:53 +0200 [thread overview]
Message-ID: <1382460476-6604-3-git-send-email-szymon.janc@tieto.com> (raw)
In-Reply-To: <1382460476-6604-1-git-send-email-szymon.janc@tieto.com>
This is usefull while debugging HAL IPC.
---
android/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/android/main.c b/android/main.c
index f3e2baa..988d08b 100644
--- a/android/main.c
+++ b/android/main.c
@@ -151,6 +151,9 @@ static gboolean cmd_watch_cb(GIOChannel *io, GIOCondition cond,
goto fail;
}
+ DBG("service_id %u opcode %u len %u", msg->service_id, msg->opcode,
+ msg->len);
+
switch (msg->service_id) {
case HAL_SERVICE_ID_CORE:
handle_service_core(msg->opcode, buf + sizeof(*msg), msg->len);
--
1.8.4
next prev parent reply other threads:[~2013-10-22 16:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-22 16:47 [PATCH 1/6] android: Handle mgmt changed events Szymon Janc
2013-10-22 16:47 ` [PATCH 2/6] android: Add initial code for handling adapter commands Szymon Janc
2013-10-22 16:47 ` Szymon Janc [this message]
2013-10-22 16:47 ` [PATCH 4/6] android/hal: Use correct service id for " Szymon Janc
2013-10-22 16:47 ` [PATCH 5/6] android: Fix error response for unknown command Szymon Janc
2013-10-22 16:47 ` [PATCH 6/6] adapter: Implement adapter enable and disable commands Szymon Janc
2013-10-22 20:23 ` [PATCH 1/6] android: Handle mgmt changed events Johan Hedberg
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=1382460476-6604-3-git-send-email-szymon.janc@tieto.com \
--to=szymon.janc@tieto.com \
--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