Skip to content
Commit 79b044b6 authored by Daniel Leung's avatar Daniel Leung Committed by Anas Nashif
Browse files

logging: move _is_user_context() check down one level



MISRA-C Directive 4.7 says that error information returned from
a function needs to be tested. In the logging macros,
return from _is_user_context() is not needed until logging is
enabled and above minimal logging level. There is a potential
that the return is not being used at all. So move it one level
below as it is surely being used within the if block.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 9ca3f619
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment