zephyr/subsys/logging
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
..
CMakeLists.txt logging: add minimal implementation 2019-10-01 09:24:02 -04:00
Kconfig logging: add minimal implementation 2019-10-01 09:24:02 -04:00
Kconfig.template.log_config
log_backend_native_posix.c logging: Clean up log.h dependencies 2019-08-01 14:42:40 +02:00
log_backend_net.c
log_backend_qemu_x86_64.c
log_backend_rtt.c
log_backend_std.h logging: Add log_output flushing to synchronous processing 2019-10-01 18:11:39 -04:00
log_backend_swo.c logging: log_backend_swo: Get clock frequency from DTS 2019-07-24 15:10:02 +02:00
log_backend_uart.c
log_backend_xtensa_sim.c
log_cmds.c
log_core.c coccinelle: standardize kernel API timeout arguments 2019-10-03 11:55:44 -07:00
log_list.c
log_list.h
log_minimal.c logging: add minimal implementation 2019-10-01 09:24:02 -04:00
log_msg.c logging: Add option to block in thread context 2019-09-23 22:04:42 -07:00
log_output.c logging: Print hexdumps with 16 bytes in one line 2019-10-11 17:53:50 +02:00