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>
This commit is contained in:
parent
3def238360
commit
3bb18f8ed9
1 changed files with 2 additions and 2 deletions
4
image.c
4
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 +
|
||||
|
|
Loading…
Reference in a new issue