mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +00:00
HV:fix rest integer violations
Fix integer related violations. V1->V2: clean all memset/calloc integer violations excpet bsp/boot directory Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -113,7 +113,7 @@ void do_logmsg(uint32_t severity, const char *fmt, ...)
|
||||
pcpu_id = get_cpu_id();
|
||||
buffer = per_cpu(logbuf, pcpu_id);
|
||||
|
||||
(void)memset(buffer, 0, LOG_MESSAGE_MAX_SIZE);
|
||||
(void)memset(buffer, 0U, LOG_MESSAGE_MAX_SIZE);
|
||||
/* Put time-stamp, CPU ID and severity into buffer */
|
||||
snprintf(buffer, LOG_MESSAGE_MAX_SIZE,
|
||||
"[%lluus][cpu=%hu][sev=%u][seq=%u]:",
|
||||
@@ -197,7 +197,7 @@ void print_logmsg_buffer(uint16_t pcpu_id)
|
||||
|
||||
do {
|
||||
uint32_t idx;
|
||||
(void)memset(buffer, 0, LOG_ENTRY_SIZE + 1);
|
||||
(void)memset(buffer, 0U, LOG_ENTRY_SIZE + 1);
|
||||
|
||||
if (*sbuf == NULL) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user