From: Szymon Janc Date: Tue, 22 Oct 2013 16:47:53 +0000 (+0200) Subject: adapter: Print debug message with IPC message header parameters X-Git-Tag: android-x86-4.4-r3~7238 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a86a413a7882fefbdda5ef280227f08fbf321849;p=android-x86%2Fexternal-bluetooth-bluez.git adapter: Print debug message with IPC message header parameters This is usefull while debugging HAL IPC. --- diff --git a/android/main.c b/android/main.c index f3e2baab4..988d08b69 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);