mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-30 03:13:07 +00:00
firmware-utils/ptgen: fix compile warnings
remove extra arguments from printf message Signed-off-by: Oskari Lemmela <oskari@lemmela.net>
This commit is contained in:
parent
ec76cbc521
commit
46c411e0b3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user