kexec: Fix the 32-bit build.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 13 Jun 2008 10:21:58 +0000 (11:21 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 13 Jun 2008 10:21:58 +0000 (11:21 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/include/public/kexec.h

index ac1743c93d7433f721d95bc55865497985d6017d..fc19f2fe50847f0c4e1d179816016c12fd878c65 100644 (file)
@@ -170,11 +170,11 @@ void vmcoreinfo_append_str(const char *fmt, ...)
 #define VMCOREINFO_STRUCT_SIZE(name) \
        vmcoreinfo_append_str("SIZE(%s)=%zu\n", #name, sizeof(struct name))
 #define VMCOREINFO_OFFSET(name, field) \
-       vmcoreinfo_append_str("OFFSET(%s.%s)=%zu\n", #name, #field, \
-                             offsetof(struct name, field))
+       vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \
+                             (unsigned long)offsetof(struct name, field))
 #define VMCOREINFO_OFFSET_ALIAS(name, field, alias) \
-       vmcoreinfo_append_str("OFFSET(%s.%s)=%zu\n", #name, #alias, \
-                             offsetof(struct name, field))
+       vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #alias, \
+                             (unsigned long)offsetof(struct name, field))
 
 #endif /* _XEN_PUBLIC_KEXEC_H */