projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8bec60
)
x86: ifdtool: Correct a debug() missing parameter
author
Simon Glass
<sjg@chromium.org>
Mon, 15 Dec 2014 00:15:35 +0000
(17:15 -0700)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/tools/ifdtool.c
b/tools/ifdtool.c
index 4a27b82c2e0ee617c2c9a152cbb983a65811720b..4cdfdcc03e0a18fab1490af6cd69cfe148adf1a7 100644
(file)
--- 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;
}