summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/image
diff options
context:
space:
mode:
authorMichael Brown2007-12-06 21:16:46 +0100
committerMichael Brown2007-12-06 21:16:46 +0100
commit1949641d102b0fdc8d4314abaee9ba055481fcc0 (patch)
tree0c302355c988e9b1d2c942bb1cc6d6170a933944 /src/arch/i386/image
parentKill off some warnings-problematic debug statements in ndp.c; the code (diff)
downloadipxe-1949641d102b0fdc8d4314abaee9ba055481fcc0.tar.gz
ipxe-1949641d102b0fdc8d4314abaee9ba055481fcc0.tar.xz
ipxe-1949641d102b0fdc8d4314abaee9ba055481fcc0.zip
Fix compiler warnings that appear only on OpenBSD.
Diffstat (limited to 'src/arch/i386/image')
-rw-r--r--src/arch/i386/image/bzimage.c2
-rw-r--r--src/arch/i386/image/nbi.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/i386/image/bzimage.c b/src/arch/i386/image/bzimage.c
index f05916819..ed9d286d2 100644
--- a/src/arch/i386/image/bzimage.c
+++ b/src/arch/i386/image/bzimage.c
@@ -344,7 +344,7 @@ static int bzimage_exec ( struct image *image ) {
shutdown();
DBGC ( image, "bzImage %p jumping to RM kernel at %04x:0000 "
- "(stack %04x:%04x)\n", image,
+ "(stack %04x:%04zx)\n", image,
( exec_ctx.rm_kernel_seg + 0x20 ),
exec_ctx.rm_kernel_seg, exec_ctx.rm_heap );
diff --git a/src/arch/i386/image/nbi.c b/src/arch/i386/image/nbi.c
index a1d74553d..195cfbf7a 100644
--- a/src/arch/i386/image/nbi.c
+++ b/src/arch/i386/image/nbi.c
@@ -233,7 +233,7 @@ static int nbi_process_segments ( struct image *image,
} while ( ! NBI_LAST_SEGHEADER ( sh.flags ) );
if ( offset != image->len ) {
- DBGC ( image, "NBI %p length wrong (file %d, metadata %d)\n",
+ DBGC ( image, "NBI %p length wrong (file %zd, metadata %zd)\n",
image, image->len, offset );
return -ENOEXEC;
}