[openwrt/openwrt] firmware-utils/ptgen: fix compile warnings

LEDE Commits lede-commits at lists.infradead.org
Wed Mar 3 01:01:10 GMT 2021


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/46c411e0b30a6f581c0c25f7a03385eb49effd03

commit 46c411e0b30a6f581c0c25f7a03385eb49effd03
Author: Oskari Lemmela <oskari at lemmela.net>
AuthorDate: Tue Mar 2 21:42:06 2021 +0200

    firmware-utils/ptgen: fix compile warnings
    
    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;



More information about the lede-commits mailing list