zephyr/include
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
..
app_memory
arch
audio
bluetooth
cmsis_rtos_v1
cmsis_rtos_v2
console
crypto
data
debug
dfu
disk
display
drivers
dt-bindings
fs
linker
logging
mgmt
net
posix
power
random
settings
shell
stats
storage
sys
toolchain
usb
zephyr
cache.h
device.h
exc_handle.h
fatal.h
generated_dts_board.h
init.h
irq_nextlevel.h
irq_offload.h
irq.h
kernel_includes.h
kernel_structs.h
kernel_version.h
kernel.h
ptp_clock.h
sched_priq.h
shared_irq.h
spinlock.h
sw_isr_table.h
sys_clock.h
syscall_handler.h
syscall.h
timeout_q.h
toolchain.h
wait_q.h
zephyr.h