[XEN] Fix building on OpenBSD.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 1 Nov 2006 10:02:00 +0000 (10:02 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 1 Nov 2006 10:02:00 +0000 (10:02 +0000)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/x86_32/seg_fixup.c

index 9a1db40b87b55231b61884729371f61921c2f0e9..643a1eec1f3a10e53ae0a41127ae77efee50ebb5 100644 (file)
@@ -296,8 +296,8 @@ int gpf_emulate_4gb(struct cpu_user_regs *regs)
         if ( get_user(b, pb) )
         {
             dprintk(XENLOG_DEBUG,
-                    "Fault while accessing byte %d of instruction\n",
-                    pb-eip);
+                    "Fault while accessing byte %ld of instruction\n",
+                    (long)(pb-eip));
             goto page_fault;
         }