mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +00:00
hv:refine 'uint64_t' string print format in comm moudle
Use "0x%lx" string to format 'uint64_t' type value, instead of "0x%llx". Tracked-On: #4020 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
@@ -61,7 +61,7 @@ void do_logmsg(uint32_t severity, const char *fmt, ...)
|
||||
|
||||
(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]:",
|
||||
snprintf(buffer, LOG_MESSAGE_MAX_SIZE, "[%luus][cpu=%hu][sev=%u][seq=%u]:",
|
||||
timestamp, pcpu_id, severity, atomic_inc_return(&logmsg_ctl.seq));
|
||||
|
||||
/* Put message into remaining portion of local buffer */
|
||||
|
Reference in New Issue
Block a user