Fix following compiling warning by using the right format:
ubi-utils/mtdinfo.c:207:21: warning: format ‘%lx’ expects argument of
type ‘long unsigned int’, but argument 4 has type ‘long long unsigned
int’
Fixes: 78f4f38bd3de8 ("ubi-utils: Fix integer overflow in mtdinfo.c")
Signed-off-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
for (i = 0; i < reginfo->numblocks; ++i) {
start = reginfo->offset + (unsigned long long)i * reginfo->erasesize;
- printf(" %*i: %08lx ", width, i, start);
+ printf(" %*i: %08llx ", width, i, start);
if (ret_locked != -1) {
ret_locked = mtd_is_locked(mtd, fd, i);