[U-Boot] [PATCH] tools: ifdtool: Write correct offset on 32-bit machine

Simon Glass sjg at chromium.org
Wed Jul 8 00:55:04 CEST 2015


On 6 July 2015 at 10:39, Simon Glass <sjg at chromium.org> wrote:
> On 6 July 2015 at 01:57, Bin Meng <bmeng.cn at gmail.com> wrote:
>> On 32-bit machine strtol() returns LONG_MAX which is 0x7fffffff,
>> which is wrong for u-boot.rom components like u-boot-x86-16bit.bin.
>> Change to use strtoll() so that it works on both 32-bit and 64-bit
>> machines.
>>
>> Reported-by: Fei Wang <wangfei.jimei at gmail.com>
>> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
>> ---
>>
>>  tools/ifdtool.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> Thanks for fixing this.
>
> Acked-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-x86, thanks!


More information about the U-Boot mailing list