From: Simon Glass Date: Mon, 15 Dec 2014 00:15:35 +0000 (-0700) Subject: x86: ifdtool: Correct a debug() missing parameter X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7e8ffa4ed8194e11c52830a7ea47e28f496c24d5;p=project%2Fbcm63xx%2Fu-boot.git 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 Reviewed-by: Bin Meng --- diff --git a/tools/ifdtool.c b/tools/ifdtool.c index 4a27b82c2e..4cdfdcc03e 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; }