diff options
author | David Michael <fedora.dm0@gmail.com> | 2014-11-18 20:29:54 -0500 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2014-11-21 01:55:16 +0100 |
commit | 847f65a8b8ce1fa0d1f51a0e579768ac445cf244 (patch) | |
tree | d5aa75a175ccb73edfc6d660218c04ba7fd2478c /linux | |
parent | e4f0d5fcc0f885ea34f83176b23871bba6346cc8 (diff) |
Correct GCC's -Wformat-security issues
* linux/pcmcia-cs/clients/axnet_cs.c (axdev_init): Add a format string
literal where printk only has a single variable argument.
* linux/src/drivers/net/3c507.c (el16_probe1): Likewise.
* linux/src/drivers/net/3c509.c (el3_probe): Likewise.
* linux/src/drivers/net/3c515.c (init_module): Likewise.
(tc515_probe): Likewise.
* linux/src/drivers/net/ac3200.c (ac_probe1): Likewise.
* linux/src/drivers/net/apricot.c (apricot_probe): Likewise.
* linux/src/drivers/net/at1700.c (at1700_probe1): Likewise.
* linux/src/drivers/net/de4x5.c (de4x5_hw_init): Likewise.
* linux/src/drivers/net/de600.c (de600_probe): Likewise.
* linux/src/drivers/net/de620.c (de620_probe): Likewise.
* linux/src/drivers/net/depca.c (depca_hw_init): Likewise.
* linux/src/drivers/net/e2100.c (e21_probe1): Likewise.
* linux/src/drivers/net/eepro.c (eepro_probe1): Likewise.
* linux/src/drivers/net/eepro100.c (speedo_found1): Likewise.
* linux/src/drivers/net/eexpress.c (eexp_hw_probe): Likewise.
* linux/src/drivers/net/ewrk3.c (ewrk3_hw_init): Likewise.
* linux/src/drivers/net/fmv18x.c (fmv18x_probe1): Likewise.
* linux/src/drivers/net/hp-plus.c (hpp_probe1): Likewise.
* linux/src/drivers/net/hp.c (hp_probe1): Likewise.
* linux/src/drivers/net/lance.c (lance_probe1): Likewise.
* linux/src/drivers/net/ne.c (ne_probe1): Likewise.
* linux/src/drivers/net/pcnet32.c (pcnet32_probe1): Likewise.
* linux/src/drivers/net/seeq8005.c (seeq8005_probe1): Likewise.
* linux/src/drivers/net/smc-ultra.c (ultra_probe1): Likewise.
* linux/src/drivers/net/smc-ultra32.c (ultra32_probe1): Likewise.
* linux/src/drivers/net/wd.c (wd_probe1): Likewise.
Diffstat (limited to 'linux')
26 files changed, 28 insertions, 28 deletions
diff --git a/linux/pcmcia-cs/clients/axnet_cs.c b/linux/pcmcia-cs/clients/axnet_cs.c index bcd79b0..2e7d9ed 100644 --- a/linux/pcmcia-cs/clients/axnet_cs.c +++ b/linux/pcmcia-cs/clients/axnet_cs.c @@ -1814,7 +1814,7 @@ static void set_multicast_list(struct net_device *dev) static int axdev_init(struct net_device *dev) { if (ei_debug > 1) - printk(version_8390); + printk("%s", version_8390); if (dev->priv == NULL) { diff --git a/linux/src/drivers/net/3c507.c b/linux/src/drivers/net/3c507.c index 63f85a4..58ba2d7 100644 --- a/linux/src/drivers/net/3c507.c +++ b/linux/src/drivers/net/3c507.c @@ -354,7 +354,7 @@ int el16_probe1(struct device *dev, int ioaddr) dev = init_etherdev(0, sizeof(struct net_local)); if (net_debug && version_printed++ == 0) - printk(version); + printk("%s", version); printk("%s: 3c507 at %#x,", dev->name, ioaddr); @@ -410,7 +410,7 @@ int el16_probe1(struct device *dev, int ioaddr) dev->if_port ? "ex" : "in", dev->mem_start, dev->mem_end-1); if (net_debug) - printk(version); + printk("%s", version); /* Initialize the device structure. */ dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); diff --git a/linux/src/drivers/net/3c509.c b/linux/src/drivers/net/3c509.c index f884288..727595c 100644 --- a/linux/src/drivers/net/3c509.c +++ b/linux/src/drivers/net/3c509.c @@ -314,7 +314,7 @@ int el3_probe(struct device *dev) el3_root_dev = dev; if (el3_debug > 0) - printk(version); + printk("%s", version); /* The EL3-specific entries in the device structure. */ dev->open = &el3_open; diff --git a/linux/src/drivers/net/3c515.c b/linux/src/drivers/net/3c515.c index fd6ec50..52f4703 100644 --- a/linux/src/drivers/net/3c515.c +++ b/linux/src/drivers/net/3c515.c @@ -404,7 +404,7 @@ init_module(void) if (debug >= 0) vortex_debug = debug; if (vortex_debug) - printk(version); + printk("%s", version); root_vortex_dev = NULL; cards_found = vortex_scan(0); @@ -419,7 +419,7 @@ int tc515_probe(struct device *dev) cards_found = vortex_scan(dev); if (vortex_debug > 0 && cards_found) - printk(version); + printk("%s", version); return cards_found ? 0 : -ENODEV; } diff --git a/linux/src/drivers/net/ac3200.c b/linux/src/drivers/net/ac3200.c index 0337bab..600949f 100644 --- a/linux/src/drivers/net/ac3200.c +++ b/linux/src/drivers/net/ac3200.c @@ -208,7 +208,7 @@ static int ac_probe1(int ioaddr, struct device *dev) dev->mem_start, dev->mem_end-1); if (ei_debug > 0) - printk(version); + printk("%s", version); ei_status.reset_8390 = &ac_reset_8390; ei_status.block_input = &ac_block_input; diff --git a/linux/src/drivers/net/apricot.c b/linux/src/drivers/net/apricot.c index d106e50..57fccaf 100644 --- a/linux/src/drivers/net/apricot.c +++ b/linux/src/drivers/net/apricot.c @@ -720,7 +720,7 @@ int apricot_probe(struct device *dev) dev->irq = 10; printk(" IRQ %d.\n", dev->irq); - if (i596_debug > 0) printk(version); + if (i596_debug > 0) printk("%s", version); /* The APRICOT-specific entries in the device structure. */ dev->open = &i596_open; diff --git a/linux/src/drivers/net/at1700.c b/linux/src/drivers/net/at1700.c index 9e42ab4..f4025f4 100644 --- a/linux/src/drivers/net/at1700.c +++ b/linux/src/drivers/net/at1700.c @@ -258,7 +258,7 @@ int at1700_probe1(struct device *dev, int ioaddr) outb(0x00, ioaddr + CONFIG_1); if (net_debug) - printk(version); + printk("%s", version); /* Initialize the device structure. */ dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); diff --git a/linux/src/drivers/net/de4x5.c b/linux/src/drivers/net/de4x5.c index a66f056..c85bcdb 100644 --- a/linux/src/drivers/net/de4x5.c +++ b/linux/src/drivers/net/de4x5.c @@ -1308,7 +1308,7 @@ de4x5_hw_init(struct device *dev, u_long iobase)) } if (de4x5_debug & DEBUG_VERSION) { - printk(version); + printk("%s", version); } /* The DE4X5-specific entries in the device structure. */ diff --git a/linux/src/drivers/net/de600.c b/linux/src/drivers/net/de600.c index 2488cd7..ce96942 100644 --- a/linux/src/drivers/net/de600.c +++ b/linux/src/drivers/net/de600.c @@ -644,7 +644,7 @@ de600_probe(struct device *dev) printk("%s: D-Link DE-600 pocket adapter", dev->name); /* Alpha testers must have the version number to report bugs. */ if (de600_debug > 1) - printk(version); + printk("%s", version); /* probe for adapter */ rx_page = 0; diff --git a/linux/src/drivers/net/de620.c b/linux/src/drivers/net/de620.c index ec63910..0e0c552 100644 --- a/linux/src/drivers/net/de620.c +++ b/linux/src/drivers/net/de620.c @@ -843,7 +843,7 @@ de620_probe(struct device *dev) dev->irq = irq; if (de620_debug) - printk(version); + printk("%s", version); printk("D-Link DE-620 pocket adapter"); diff --git a/linux/src/drivers/net/depca.c b/linux/src/drivers/net/depca.c index e1b0342..2048812 100644 --- a/linux/src/drivers/net/depca.c +++ b/linux/src/drivers/net/depca.c @@ -649,7 +649,7 @@ depca_hw_init(struct device *dev, u_long ioaddr) } if (!status) { if (depca_debug > 1) { - printk(version); + printk("%s", version); } /* The DEPCA-specific entries in the device structure. */ diff --git a/linux/src/drivers/net/e2100.c b/linux/src/drivers/net/e2100.c index 7ba12d3..537295a 100644 --- a/linux/src/drivers/net/e2100.c +++ b/linux/src/drivers/net/e2100.c @@ -162,7 +162,7 @@ int e21_probe1(struct device *dev, int ioaddr) outb(0, ioaddr + E21_ASIC); /* and disable the secondary interface. */ if (ei_debug && version_printed++ == 0) - printk(version); + printk("%s", version); /* We should have a "dev" from Space.c or the static module table. */ if (dev == NULL) { diff --git a/linux/src/drivers/net/eepro.c b/linux/src/drivers/net/eepro.c index 2c3a6b2..3d4fc57 100644 --- a/linux/src/drivers/net/eepro.c +++ b/linux/src/drivers/net/eepro.c @@ -498,7 +498,7 @@ eepro_probe1(struct device *dev, short ioaddr) } if (net_debug) - printk(version); + printk("%s", version); /* Grab the region so we can find another board if autoIRQ fails. */ request_region(ioaddr, EEPRO_IO_EXTENT, "eepro"); diff --git a/linux/src/drivers/net/eepro100.c b/linux/src/drivers/net/eepro100.c index 6909cdc..d03462c 100644 --- a/linux/src/drivers/net/eepro100.c +++ b/linux/src/drivers/net/eepro100.c @@ -726,7 +726,7 @@ static void *speedo_found1(struct pci_dev *pdev, void *init_dev, eeprom[8], eeprom[9]>>8, eeprom[9] & 0xff); for (i = 0; i < 4; i++) if (eeprom[5] & (1<<i)) - printk(connectors[i]); + printk("%s", connectors[i]); printk("\n"KERN_INFO" Primary interface chip %s PHY #%d.\n", phys[(eeprom[6]>>8)&15], eeprom[6] & 0x1f); if (eeprom[7] & 0x0700) diff --git a/linux/src/drivers/net/eexpress.c b/linux/src/drivers/net/eexpress.c index d706550..9c816ee 100644 --- a/linux/src/drivers/net/eexpress.c +++ b/linux/src/drivers/net/eexpress.c @@ -794,7 +794,7 @@ static int eexp_hw_probe(struct device *dev, unsigned short ioaddr) } if (net_debug) - printk(version); + printk("%s", version); dev->open = eexp_open; dev->stop = eexp_close; dev->hard_start_xmit = eexp_xmit; diff --git a/linux/src/drivers/net/ewrk3.c b/linux/src/drivers/net/ewrk3.c index f91315f..07b0f13 100644 --- a/linux/src/drivers/net/ewrk3.c +++ b/linux/src/drivers/net/ewrk3.c @@ -589,7 +589,7 @@ ewrk3_hw_init(struct device *dev, u_long iobase) if (!status) { if (ewrk3_debug > 1) { - printk(version); + printk("%s", version); } /* The EWRK3-specific entries in the device structure. */ diff --git a/linux/src/drivers/net/fmv18x.c b/linux/src/drivers/net/fmv18x.c index 121dd0b..b29ddf0 100644 --- a/linux/src/drivers/net/fmv18x.c +++ b/linux/src/drivers/net/fmv18x.c @@ -249,7 +249,7 @@ int fmv18x_probe1(struct device *dev, short ioaddr) outb(dev->if_port, ioaddr + MODE13); if (net_debug) - printk(version); + printk("%s", version); /* Initialize the device structure. */ dev->priv = kmalloc(sizeof(struct net_local), GFP_KERNEL); diff --git a/linux/src/drivers/net/hp-plus.c b/linux/src/drivers/net/hp-plus.c index c8e3611..c2b7116 100644 --- a/linux/src/drivers/net/hp-plus.c +++ b/linux/src/drivers/net/hp-plus.c @@ -164,7 +164,7 @@ int hpp_probe1(struct device *dev, int ioaddr) } if (ei_debug && version_printed++ == 0) - printk(version); + printk("%s", version); printk("%s: %s at %#3x,", dev->name, name, ioaddr); diff --git a/linux/src/drivers/net/hp.c b/linux/src/drivers/net/hp.c index 741924f..6ddbfd2 100644 --- a/linux/src/drivers/net/hp.c +++ b/linux/src/drivers/net/hp.c @@ -136,7 +136,7 @@ int hp_probe1(struct device *dev, int ioaddr) } if (ei_debug && version_printed++ == 0) - printk(version); + printk("%s", version); printk("%s: %s (ID %02x) at %#3x,", dev->name, name, board_id, ioaddr); diff --git a/linux/src/drivers/net/lance.c b/linux/src/drivers/net/lance.c index f64f0fe..fe3cf68 100644 --- a/linux/src/drivers/net/lance.c +++ b/linux/src/drivers/net/lance.c @@ -674,7 +674,7 @@ int lance_probe1(struct device *dev, int ioaddr, int irq, int options) } if (lance_debug > 0 && did_version++ == 0) - printk(version); + printk("%s", version); /* The LANCE-specific entries in the device structure. */ dev->open = lance_open; diff --git a/linux/src/drivers/net/ne.c b/linux/src/drivers/net/ne.c index 825b768..ea2f929 100644 --- a/linux/src/drivers/net/ne.c +++ b/linux/src/drivers/net/ne.c @@ -291,7 +291,7 @@ static int ne_probe1(struct device *dev, int ioaddr) } if (ei_debug && version_printed++ == 0) - printk(version); + printk("%s", version); printk("NE*000 ethercard probe at %#3x:", ioaddr); diff --git a/linux/src/drivers/net/pcnet32.c b/linux/src/drivers/net/pcnet32.c index 02e7098..da0e870 100644 --- a/linux/src/drivers/net/pcnet32.c +++ b/linux/src/drivers/net/pcnet32.c @@ -344,7 +344,7 @@ static int pcnet32_probe1(struct device *dev, unsigned int ioaddr, unsigned char dev->irq = irq_line; if (pcnet32_debug > 0) - printk(version); + printk("%s", version); /* The PCNET32-specific entries in the device structure. */ dev->open = &pcnet32_open; diff --git a/linux/src/drivers/net/seeq8005.c b/linux/src/drivers/net/seeq8005.c index c4d4852..4adebde 100644 --- a/linux/src/drivers/net/seeq8005.c +++ b/linux/src/drivers/net/seeq8005.c @@ -274,7 +274,7 @@ static int seeq8005_probe1(struct device *dev, int ioaddr) dev = init_etherdev(0, sizeof(struct net_local)); if (net_debug && version_printed++ == 0) - printk(version); + printk("%s", version); printk("%s: %s found at %#3x, ", dev->name, "seeq8005", ioaddr); diff --git a/linux/src/drivers/net/smc-ultra.c b/linux/src/drivers/net/smc-ultra.c index 074a235..f593aeb 100644 --- a/linux/src/drivers/net/smc-ultra.c +++ b/linux/src/drivers/net/smc-ultra.c @@ -156,7 +156,7 @@ int ultra_probe1(struct device *dev, int ioaddr) dev = init_etherdev(0, 0); if (ei_debug && version_printed++ == 0) - printk(version); + printk("%s", version); model_name = (idreg & 0xF0) == 0x20 ? "SMC Ultra" : "SMC EtherEZ"; diff --git a/linux/src/drivers/net/smc-ultra32.c b/linux/src/drivers/net/smc-ultra32.c index f616e25..6cde4c2 100644 --- a/linux/src/drivers/net/smc-ultra32.c +++ b/linux/src/drivers/net/smc-ultra32.c @@ -153,7 +153,7 @@ int ultra32_probe1(struct device *dev, int ioaddr) } if (ei_debug && version_printed++ == 0) - printk(version); + printk("%s", version); model_name = "SMC Ultra32"; diff --git a/linux/src/drivers/net/wd.c b/linux/src/drivers/net/wd.c index a737a01..dd87902 100644 --- a/linux/src/drivers/net/wd.c +++ b/linux/src/drivers/net/wd.c @@ -137,7 +137,7 @@ int wd_probe1(struct device *dev, int ioaddr) } if (ei_debug && version_printed++ == 0) - printk(version); + printk("%s", version); printk("%s: WD80x3 at %#3x, ", dev->name, ioaddr); for (i = 0; i < 6; i++) |