From 46c411e0b30a6f581c0c25f7a03385eb49effd03 Mon Sep 17 00:00:00 2001 From: Oskari Lemmela Date: Tue, 2 Mar 2021 21:42:06 +0200 Subject: [PATCH] firmware-utils/ptgen: fix compile warnings remove extra arguments from printf message Signed-off-by: Oskari Lemmela --- tools/firmware-utils/src/ptgen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/firmware-utils/src/ptgen.c b/tools/firmware-utils/src/ptgen.c index 93c2d32a3ff..a55f2e7a14c 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; -- 2.30.2