]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:29:27 +0000 (13:29 +0200)
commitdc6c7cd595607e13a3041f8f484d00ee12454810
tree165f1a404cdfb8890079de560fbc8093a5194680
parenta3fff644e3e5a95393b7095c3c299735bf95d1c0
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