zephyr/subsys/logging
Marcin Niestroj fcabe3a506 logging: fix immediate logging with multiple backends
va_list was initialized once and passed to log_backend_put_sync_string()
for each logging backend. State of such va_list was changed in each
execution, resulting in different va_list state to be passed for
consecutive log_backend_put_sync_string() calls. This results in
undefined behavior and program crashes.

Use va_copy() to copy va_list state to temporary variable for each
logging backend and keep original va_list untouched. Pass such temporary
state to log_backend_put_sync_string() to make sure state for all
consecutive calls does not change.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
2020-08-10 10:58:43 +02:00
..
CMakeLists.txt logging: added new logging backend - Spinel protocol 2020-07-21 15:11:55 +02:00
Kconfig logging: added new logging backend - Spinel protocol 2020-07-21 15:11:55 +02:00
Kconfig.template.log_config
log_backend_native_posix.c logging: avoid identifier collisions 2020-07-25 21:26:15 -04:00
log_backend_net.c logging: avoid identifier collisions 2020-07-25 21:26:15 -04:00
log_backend_rb.c logging: avoid identifier collisions 2020-07-25 21:26:15 -04:00
log_backend_rtt.c logging: avoid identifier collisions 2020-07-25 21:26:15 -04:00
log_backend_spinel.c logging: avoid identifier collisions 2020-07-25 21:26:15 -04:00
log_backend_std.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
log_backend_swo.c logging: avoid identifier collisions 2020-07-25 21:26:15 -04:00
log_backend_uart.c logging: avoid identifier collisions 2020-07-25 21:26:15 -04:00
log_backend_xtensa_sim.c logging: avoid identifier collisions 2020-07-25 21:26:15 -04:00
log_cmds.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
log_core.c logging: fix immediate logging with multiple backends 2020-08-10 10:58:43 +02:00
log_list.c
log_list.h
log_minimal.c
log_msg.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
log_output_syst.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
log_output.c logging: avoid identifier collisions 2020-07-25 21:26:15 -04:00