zephyr/subsys/logging
Daniel Leung 3c2d0f37a3 logging: avoid identifier collisions
MISRA-C Rule 5.3 states that identifiers in inner scope should
not hide identifiers in outer scope.

The log output instances all named "log_output" in backends
collide with the "log_output" parameter of various functions.
This renames the variables in the backends to make them
more descriptive. Same goes for the buffers for some of
these instances as they are all named "buf", and "hostname"
being used in the network backend,  so they are renamed.

There are a few places where variables are overriden within
an inner scope (e.g. inside loop and if block) so they are
also renamed.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2020-07-25 21:26:15 -04: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 license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
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: avoid identifier collisions 2020-07-25 21:26:15 -04:00
log_list.c logging: subsystem major redesign 2018-06-29 10:16:45 +02:00
log_list.h logging: subsystem major redesign 2018-06-29 10:16:45 +02:00
log_minimal.c logging: fix LOG_HEXDUMP_* in C++. 2019-12-18 21:54:18 +01:00
log_msg.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
log_output_syst.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00