projects
/
openwrt
/
staging
/
dangole.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec76cbc
)
firmware-utils/ptgen: fix compile warnings
author
Oskari Lemmela
<oskari@lemmela.net>
Tue, 2 Mar 2021 19:42:06 +0000
(21:42 +0200)
committer
Daniel Golle
<daniel@makrotopia.org>
Wed, 3 Mar 2021 01:00:23 +0000
(
01:00
+0000)
remove extra arguments from printf message
Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
tools/firmware-utils/src/ptgen.c
patch
|
blob
|
history
diff --git
a/tools/firmware-utils/src/ptgen.c
b/tools/firmware-utils/src/ptgen.c
index 93c2d32a3ffcfc7d9d2b86de91861443d223e25a..a55f2e7a14c1863bdc7824b9b03912597ecf1978 100644
(file)
--- 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;