zephyr/subsys/logging
Josh Gao 9f2916b943 logging: fix LOG_HEXDUMP_* in C++.
Previously, there were two issues when attempting to use LOG_HEXDUMP_*
from C++:

First, gcc and clang in C mode both allow implicit pointer conversion
by default, but require -fpermissive, which no one should ever use, in
C++ mode. Furthermore, -Wpointer-sign, the warning emitted in C for
convertion between pointers to types of different signedness (e.g. char*
vs u8_t*) is explicitly disabled in Zephyr. Switch the various hexdump
functions to void*, which is guaranteed to work in both languages.

Second, the soon-to-be-standardized C++20 version of designated
initializers requires that the designators appear in the same order as
they are declared in the type being initialized.

Signed-off-by: Josh Gao <josh@jmgao.dev>
2019-12-18 21:54:18 +01:00
..
CMakeLists.txt
Kconfig
Kconfig.template.log_config
log_backend_native_posix.c
log_backend_net.c
log_backend_rtt.c
log_backend_std.h
log_backend_swo.c
log_backend_uart.c
log_backend_xtensa_sim.c
log_cmds.c
log_core.c logging: fix LOG_HEXDUMP_* in C++. 2019-12-18 21:54:18 +01:00
log_list.c
log_list.h
log_minimal.c logging: fix LOG_HEXDUMP_* in C++. 2019-12-18 21:54:18 +01:00
log_msg.c
log_output_syst.c
log_output.c