Skip to contentSkip to conversation

x86: fix guest wrmsr warning format

PATCH New Jan Beulich 1 participant 1 message Jun 15, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: fix guest wrmsr warning format

During the recent MSR handling cleanup, the '0' format modifier got lost.

xen/arch/x86/traps.c +1 -1
@@ -2296,7 +2296,7 @@ static int emulate_privileged_op(struct 
                  (eax != (uint32_t)val) || (edx != (uint32_t)(val >> 32)) )
         invalid:
                 gdprintk(XENLOG_WARNING, "Domain attempted WRMSR %p from "
-                        "0x%16"PRIx64" to 0x%16"PRIx64".\n",
+                        "0x%016"PRIx64" to 0x%016"PRIx64".\n",
                         _p(regs->ecx), val, msr_content);
             break;
         }

During the recent MSR handling cleanup, the '0' format modifier got lost.

xen/arch/x86/traps.c +1 -1
@@ -2296,7 +2296,7 @@ static int emulate_privileged_op(struct 
                  (eax != (uint32_t)val) || (edx != (uint32_t)(val >> 32)) )
         invalid:
                 gdprintk(XENLOG_WARNING, "Domain attempted WRMSR %p from "
-                        "0x%16"PRIx64" to 0x%16"PRIx64".\n",
+                        "0x%016"PRIx64" to 0x%016"PRIx64".\n",
                         _p(regs->ecx), val, msr_content);
             break;
         }

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel