Build fix for OpenBSD
PATCH 1/1 Build fix for OpenBSD
Hi!
I have xen-unstable changeset 12050:
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -DNDEBUG -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Werror -Wno-pointer-arith -pipe -I/usr/src/xen-unstable-master.hg/xen/include -I/usr/src/xen-unstable-master.hg/xen/include/asm-x86/mach-generic -I/usr/src/xen-unstable-master.hg/xen/include/asm-x86/mach-default -msoft-float -fno-stack-protector -fno-stack-protector-all -g -D__XEN__ -c seg_fixup.c -o seg_fixup.oseg_fixup.c: In function `gpf_emulate_4gb':
seg_fixup.c:298: warning: int format, long int arg (arg 4) gmake[4]: *** [seg_fixup.o] Error 1
gmake[4]: Leaving directory `/usr/src/xen-unstable-master.hg/xen/arch/x86/x86_32' gmake[3]: *** [x86_32/built_in.o] Error 2
The attached patch fixes this.
xen/arch/x86/x86_32/seg_fixup.c +1 -1
@@ -296,7 +296,7 @@ int gpf_emulate_4gb(struct cpu_user_regsif (get_user (b, pb) ) {dprintk (XENLOG_DEBUG , -"Fault while accessing byte %d of instruction\n" , +"Fault while accessing byte %ld of instruction\n" , pb-eip); goto page_fault; }
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel