From 3bb18f8ed9903381f657f3e36e8ae2ddf992123c Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Mon, 28 May 2012 11:36:28 +0800 Subject: [PATCH] image: Fix format specifier for 32-bit builds Use %t rather than assuming typeof(ptr - int) == unsigned long. Signed-off-by: Jeremy Kerr --- image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image.c b/image.c index f1163ae..df16813 100644 --- a/image.c +++ b/image.c @@ -261,12 +261,12 @@ int image_find_regions(struct image *image) if (regions[i+2].data + regions[i+2].size != regions[i+3].data) { fprintf(stderr, "warning: gap in section table:\n"); - fprintf(stderr, " %-8s: 0x%08lx - 0x%08lx,\n", + fprintf(stderr, " %-8s: 0x%08tx - 0x%08tx,\n", regions[i+2].name, regions[i+2].data - image->buf, regions[i+2].data + regions[i+2].size - image->buf); - fprintf(stderr, " %-8s: 0x%08lx - 0x%08lx,\n", + fprintf(stderr, " %-8s: 0x%08tx - 0x%08tx,\n", regions[i+3].name, regions[i+3].data - image->buf, regions[i+3].data +