mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-13 22:14:27 +08:00
hcidump: Fix spaces for extended dump
This commit is contained in:
parent
3ff0c36a8a
commit
8f7a3917a2
@ -156,10 +156,9 @@ void ext_dump(int level, struct frame *frm, int num)
|
||||
size = num > 16 ? 16 : num;
|
||||
|
||||
for (i = 0; i < size; i++)
|
||||
printf("%02x ", buf[i]);
|
||||
printf("%02x%s", buf[i], (i + 1) % 8 ? " " : " ");
|
||||
for (i = 0; i < 16 - size; i++)
|
||||
printf(" ");
|
||||
printf(" ");
|
||||
printf(" %s", (i + 1) % 8 ? " " : " ");
|
||||
|
||||
for (i = 0; i < size; i++)
|
||||
printf("%1c", isprint(buf[i]) ? buf[i] : '.');
|
||||
|
Loading…
Reference in New Issue
Block a user