From: Oskari Lemmela Date: Tue, 2 Mar 2021 19:42:06 +0000 (+0200) Subject: firmware-utils/ptgen: fix compile warnings X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=46c411e0b30a6f581c0c25f7a03385eb49effd03;p=openwrt%2Fstaging%2Fynezz.git firmware-utils/ptgen: fix compile warnings remove extra arguments from printf message Signed-off-by: Oskari Lemmela --- diff --git a/tools/firmware-utils/src/ptgen.c b/tools/firmware-utils/src/ptgen.c index 93c2d32a3f..a55f2e7a14 100644 --- a/tools/firmware-utils/src/ptgen.c +++ b/tools/firmware-utils/src/ptgen.c @@ -311,7 +311,7 @@ static int gen_ptable(uint32_t signature, int nr) if (parts[i].start != 0) { if (parts[i].start * 2 < start) { fprintf(stderr, "Invalid start %ld for partition %d!\n", - parts[i].start, i, start); + parts[i].start, i); return ret; } start = parts[i].start * 2; @@ -398,7 +398,7 @@ static int gen_gptable(uint32_t signature, guid_t guid, unsigned nr) if (parts[i].start != 0) { if (parts[i].start * 2 < start) { fprintf(stderr, "Invalid start %ld for partition %d!\n", - parts[i].start, i, start); + parts[i].start, i); return ret; } start = parts[i].start * 2;