[PATCH 1/6] firmware-utils/ptgen: fix compile warnings
Oskari Lemmela
oskari at lemmela.net
Tue Mar 2 19:42:06 GMT 2021
remove extra arguments from printf message
Signed-off-by: Oskari Lemmela <oskari at lemmela.net>
---
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 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;
--
2.25.1
More information about the openwrt-devel
mailing list