zephyr/samples/subsys
Jukka Rissanen dc7b307a47 logging: Print hexdumps with 16 bytes in one line
The hexdump was earlier printed using 8 bytes in one line like this

[00:00:00.131,143] <wrn> sample_instance.inst2: Example of hexdump:
01 02 03 04 05 06 07 08 |........
09 0a 0b 0c 0d 0e 0f 10 |........
11 12 13 14 15 16 17 18 |........
19 1a 1b 1c 1d 1e 1f 20 |.......
21 22                   |!"

This is not utilizing the width of the output best way possible.

Better utilization of the output is to print 16 bytes in one line
like this:

[00:00:00.131,136] <wrn> sample_instance.inst2: Example of hexdump:
01 02 03 04 05 06 07 08  09 0a 0b 0c 0d 0e 0f 10 |........ ........
11 12 13 14 15 16 17 18  19 1a 1b 1c 1d 1e 1f 20 |........ .......
21 22                                            |!"

In order to make it easier to find / calculate the bytes in the
output, print the output bytes in 8 byte groups.

This has the benefit that it is easier to map the Zephyr hex output
to Wireshark output which prints the bytes like this.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2019-10-11 17:53:50 +02:00
..
console doc: add how to exit from QEMU in samples 2019-09-02 12:06:08 -04:00
fs coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
ipc coccinelle: standardize k_thread create/define calls with integer timeouts 2019-10-09 08:38:10 -04:00
logging logging: Print hexdumps with 16 bytes in one line 2019-10-11 17:53:50 +02:00
mgmt coccinelle: standardize k_sleep calls with integer timeouts 2019-10-09 08:38:10 -04:00
nvs boards: x86: qemu_x86: adding nvs capability 2019-09-27 10:06:40 -07:00
power/device_pm cleanup: include/: move misc/printk.h to sys/printk.h 2019-06-27 22:55:49 -04:00
shell samples: move board overlay files into boards directory 2019-10-01 20:38:24 -07:00
usb samples: usb: webusb: Update sample README 2019-10-09 17:16:41 -05:00
subsys.rst