mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
hv: fix 'No brackets to then/else'
- add missing brackets for 'if/else' statements based on MISRA-C requirements v1 -> v2: * add brackets for each conditions in 'if' statements to improve the readability * modify 'ptdev_init' to make the logic clearer Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
@@ -128,8 +128,9 @@ void do_logmsg(uint32_t severity, const char *fmt, ...)
|
||||
va_end(args);
|
||||
|
||||
/* Check if flags specify to output to NPK */
|
||||
if (do_npk_log)
|
||||
if (do_npk_log) {
|
||||
npk_log_write(buffer, strnlen_s(buffer, LOG_MESSAGE_MAX_SIZE));
|
||||
}
|
||||
|
||||
/* Check if flags specify to output to stdout */
|
||||
if (do_console_log) {
|
||||
|
Reference in New Issue
Block a user