x86: ifdtool: Correct a debug() missing parameter
authorSimon Glass <sjg@chromium.org>
Mon, 15 Dec 2014 00:15:35 +0000 (17:15 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 19 Dec 2014 00:26:04 +0000 (17:26 -0700)
This is missing a parameter. Fix it to avoid a warning when debug is
enabled.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
tools/ifdtool.c

index 4a27b82c2e0ee617c2c9a152cbb983a65811720b..4cdfdcc03e0a18fab1490af6cd69cfe148adf1a7 100644 (file)
@@ -54,7 +54,8 @@ static struct fdbar_t *find_fd(char *image, int size)
                return NULL;
        }
 
-       debug("Found Flash Descriptor signature at 0x%08x\n", i);
+       debug("Found Flash Descriptor signature at 0x%08lx\n",
+             (char *)ptr - image);
 
        return (struct fdbar_t *)ptr;
 }