aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Kerr <jeremy.kerr@canonical.com>2012-05-28 11:36:28 +0800
committerJeremy Kerr <jeremy.kerr@canonical.com>2012-05-28 22:35:48 +0800
commit3bb18f8ed9903381f657f3e36e8ae2ddf992123c (patch)
treef1112b4de4f010fe3e8631baaf3014197c1c2a09
parent3def2383601b1062930a5d95cbf954c766214a5e (diff)
downloadsbsigntools-3bb18f8ed9903381f657f3e36e8ae2ddf992123c.tar.gz
image: Fix format specifier for 32-bit builds
Use %t rather than assuming typeof(ptr - int) == unsigned long. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
-rw-r--r--image.c4
1 files 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 +