
15 Dec
2014
15 Dec
'14
1:15 a.m.
This is missing a parameter. Fix it to avoid a warning when debug is enabled.
Signed-off-by: Simon Glass sjg@chromium.org ---
tools/ifdtool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/ifdtool.c b/tools/ifdtool.c index 4a27b82..4cdfdcc 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; }
--
2.2.0.rc0.207.ga3a616c