mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 01:37:44 +00:00
HV: fix sbuf "Casting operation to a pointer"
ACRN Coding guidelines requires two different types pointer can't convert to each other, except void *. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -89,7 +89,7 @@ void do_logmsg(uint32_t severity, const char *fmt, ...)
|
||||
/* Check if flags specify to output to memory */
|
||||
if (do_mem_log) {
|
||||
uint32_t i, msg_len;
|
||||
struct shared_buf *sbuf = (struct shared_buf *)per_cpu(sbuf, pcpu_id)[ACRN_HVLOG];
|
||||
struct shared_buf *sbuf = per_cpu(sbuf, pcpu_id)[ACRN_HVLOG];
|
||||
|
||||
/* If sbuf is not ready, we just drop the massage */
|
||||
if (sbuf != NULL) {
|
||||
|
Reference in New Issue
Block a user