From c6aba8e396c6e69ede1b560e26d073f745810863 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sat, 9 Jul 2005 17:28:45 +0000 Subject: [PATCH] hcidump: Take care of the device field --- tools/parser/hci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/parser/hci.c b/tools/parser/hci.c index c41dec28b..80c12a062 100644 --- a/tools/parser/hci.c +++ b/tools/parser/hci.c @@ -2390,13 +2390,14 @@ static inline void vendor_dump(int level, struct frame *frm) return; if (frm->dev_id == HCI_DEV_NONE) { + uint16_t device = btohs(htons(get_u16(frm))); uint16_t type = btohs(htons(get_u16(frm))); uint16_t plen = btohs(htons(get_u16(frm))); p_indent(level, frm); - printf("System %s: type 0x%2.2x plen %d\n", - frm->in ? "event" : "command", type, plen); + printf("System %s: device hci%d type 0x%2.2x plen %d\n", + frm->in ? "event" : "command", device, type, plen); raw_dump(level, frm); return; -- 2.47.3