]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: ifdtool: Write correct offset on 32-bit machine
authorBin Meng <bmeng.cn@gmail.com>
Mon, 6 Jul 2015 07:57:06 +0000 (15:57 +0800)
committerSimon Glass <sjg@chromium.org>
Wed, 15 Jul 2015 00:03:19 +0000 (18:03 -0600)
commit50e8a6bba0cf5939afe849ef792f88f09a755758
treea7e39522c0b7c53540041e516640e49563034b5a
parentdf898678ab96b904b962743bb5388284c712b9fb
tools: ifdtool: Write correct offset on 32-bit machine

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@gmail.com>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
tools/ifdtool.c