[U-Boot] [PATCH 2/8] x86: ifdtool: Correct a debug() missing parameter
Simon Glass
sjg at chromium.org
Tue Dec 16 06:03:17 CET 2014
On 15 December 2014 at 02:22, Bin Meng <bmeng.cn at gmail.com> wrote:
> On Mon, Dec 15, 2014 at 8:15 AM, Simon Glass <sjg at chromium.org> wrote:
>> This is missing a parameter. Fix it to avoid a warning when debug is
>> enabled.
>>
>> Signed-off-by: Simon Glass <sjg at 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;
>> }
>> --
>
> Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Applied to u-boot-x86.
More information about the U-Boot
mailing list