[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Add format printf attribute to panic() prototype and fix the error



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 38c170be0e637717305179a8b32090d2ada54907
# Parent  11fee62328cc1697d7c140bf27635d184362bce5
Add format printf attribute to panic() prototype and fix the error  
this catches.

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>

diff -r 11fee62328cc -r 38c170be0e63 xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c      Fri Mar 24 16:48:03 2006
+++ b/xen/arch/x86/traps.c      Sun Mar 26 10:35:11 2006
@@ -705,7 +705,7 @@
         panic("CPU%d FATAL PAGE FAULT\n"
               "[error_code=%04x]\n"
               "Faulting linear address: %p\n",
-              smp_processor_id(), regs->error_code, addr);
+              smp_processor_id(), regs->error_code, _p(addr));
     }
 
     propagate_page_fault(addr, regs->error_code);
diff -r 11fee62328cc -r 38c170be0e63 xen/include/xen/lib.h
--- a/xen/include/xen/lib.h     Fri Mar 24 16:48:03 2006
+++ b/xen/include/xen/lib.h     Sun Mar 26 10:35:11 2006
@@ -47,7 +47,8 @@
 #define printk(_f , _a...) printf( _f , ## _a )
 extern void printf(const char *format, ...)
     __attribute__ ((format (printf, 1, 2)));
-extern void panic(const char *format, ...);
+extern void panic(const char *format, ...)
+    __attribute__ ((format (printf, 1, 2)));
 extern long vm_assist(struct domain *, unsigned int, unsigned int);
 
 /* vsprintf.c */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.