mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
HV: Logical conjunction needs brackets
The bracket is required when the level of precedence of the operators is less than 13. Add the bracket to logical conjunctions. The commit applys the rule to the files under Signed-off-by: Yang, Yu-chu <yu-chu.yang@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
@@ -94,9 +94,9 @@ void do_logmsg(uint32_t severity, const char *fmt, ...)
|
||||
char *buffer;
|
||||
spinlock_rflags;
|
||||
|
||||
do_console_log = ((logmsg.flags & LOG_FLAG_STDOUT) != 0U &&
|
||||
do_console_log = (((logmsg.flags & LOG_FLAG_STDOUT) != 0U) &&
|
||||
(severity <= console_loglevel));
|
||||
do_mem_log = ((logmsg.flags & LOG_FLAG_MEMORY) != 0U &&
|
||||
do_mem_log = (((logmsg.flags & LOG_FLAG_MEMORY) != 0U) &&
|
||||
(severity <= mem_loglevel));
|
||||
|
||||
if (!do_console_log && !do_mem_log) {
|
||||
|
Reference in New Issue
Block a user