summaryrefslogtreecommitdiff
path: root/tools/ifdtool.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-12-14 17:15:35 -0700
committerSimon Glass <sjg@chromium.org>2014-12-18 17:26:04 -0700
commit7e8ffa4ed8194e11c52830a7ea47e28f496c24d5 (patch)
tree2785c76a84217ae84b8af474ce02d8d5fd3688d4 /tools/ifdtool.c
parentd8bec60c1b0de7770f9b56ad092ab9be801d99af (diff)
x86: ifdtool: Correct a debug() missing parameter
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>
Diffstat (limited to 'tools/ifdtool.c')
-rw-r--r--tools/ifdtool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/ifdtool.c b/tools/ifdtool.c
index 4a27b82c2e0..4cdfdcc03e0 100644
--- a/tools/ifdtool.c
+++ b/tools/ifdtool.c
@@ -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;
}