]> www.infradead.org Git - mtd-utils.git/commit
ubi-utils: mtdinfo: Fix type truncation compiling warning for 'start' variable
authorZhihao Cheng <chengzhihao1@huawei.com>
Sun, 26 Jan 2025 06:41:57 +0000 (14:41 +0800)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Thu, 30 Jan 2025 17:30:16 +0000 (18:30 +0100)
commit53a16db8824ee93ab066e57744cb6f7ea5ba053d
treead85d2190897f7c386609366d0fafe12904fd33e
parentd162bd48300c91b8a53791868401dddcd4dcfa3e
ubi-utils: mtdinfo: Fix type truncation compiling warning for 'start' variable

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>
ubi-utils/mtdinfo.c