1
0
Fork 0
zephyr/subsys
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
..
bluetooth Bluetooth: controller: Added some comments for fields in node rx struct 2020-07-23 11:39:47 +02:00
canbus canbus: canopen: fix reference to CAN in Automation draft standard 2020-06-29 14:10:56 -04:00
console console: tty: Fix k_sem_take with wait time from ISR 2020-06-17 17:10:08 +02:00
cpp cpp: Fixed compile warning with extern array declaration 2020-06-09 14:42:16 +02:00
debug zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
dfu config: Rename TEXT_SECTION_OFFSET to ROM_START_OFFSET 2020-07-09 14:02:38 -04:00
disk disk: Remove unused variables in nxp usdhc driver 2020-07-09 07:56:44 -05:00
fb zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
fs subsys/fs: Fix fs_* operations crashing when file closed 2020-07-03 12:16:11 -04:00
jwt zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
logging logging: avoid identifier collisions 2020-07-25 21:26:15 -04:00
mgmt mgmt: smp: Missing socket close in error path 2020-07-22 15:22:50 -05:00
net subsys/ieee802154: Add 'fall through' comment to switch 2020-07-24 21:51:14 -04:00
power soc: arm: st_stm32 add low power to stm32wb series 2020-07-02 08:45:40 -04:00
random random: Add syscalls for random subsystem 2020-07-08 21:05:36 -04:00
settings settings: Fix uninitialised variables 2020-06-17 08:55:59 +03:00
shell shell: Export shell_hexdump_line() 2020-07-07 17:19:26 -04:00
stats zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
storage storage: flash_map: Fix partition device retrieval 2020-07-16 11:51:46 -05:00
testsuite subsys/testsuite: Fix coverity null dereference warning 2020-07-24 21:51:14 -04:00
tracing tracing: uart: rename global variable named dev 2020-07-25 21:26:15 -04:00
usb soc: sam0: add support for the BOSSA bootloader 2020-07-22 13:24:37 +02:00
CMakeLists.txt tracing: move tracing under subsys/ 2020-02-07 15:58:05 -05:00
Kconfig tracing: move tracing under subsys/ 2020-02-07 15:58:05 -05:00