mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 04:20:17 +03:00
[makefile] Add -Wformat-nonliteral as an extra warning category
-Wformat-nonliteral is not enabled by -Wall and needs to be explicitly specified. Modified the few files that use nonliteral format strings to work with this new setting in place. Inspired by a patch from Carl Karsten <carl@personnelware.com> and an identical patch from Rorschach <r0rschach@lavabit.com>.
This commit is contained in:
@@ -363,7 +363,7 @@ vxgetlink(void)
|
||||
if (n > 0) {
|
||||
printf("/");
|
||||
}
|
||||
printf(conn_tab[k].name);
|
||||
printf("%s", conn_tab[k].name );
|
||||
n++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -452,7 +452,7 @@ static int reg_delay(int offset, u32 mask,
|
||||
delaymax -= delay;
|
||||
if (delaymax < 0) {
|
||||
if (msg)
|
||||
printf(msg);
|
||||
printf("%s", msg);
|
||||
return 1;
|
||||
}
|
||||
} while ((readl(base + offset) & mask) != target);
|
||||
|
||||
@@ -1008,7 +1008,7 @@ rhine_probe1 (struct nic *nic, struct pci_device *pci, int ioaddr, int chip_id,
|
||||
unsigned char mode3_reg;
|
||||
|
||||
if (rhine_debug > 0 && did_version++ == 0)
|
||||
printf (version);
|
||||
printf ("%s",version);
|
||||
|
||||
// get revision id.
|
||||
pci_read_config_byte(pci, PCI_REVISION, &revision_id);
|
||||
|
||||
Reference in New Issue
Block a user