Skip to content

Commit fe3a83a

Browse files
Maciej W. Rozyckidavem330
authored andcommitted
declance: Fix continuation with the adapter identification message
Fix a commit 4bcc595 ("printk: reinstate KERN_CONT for printing continuation lines") regression with the `declance' driver, which caused the adapter identification message to be split between two lines, e.g.: declance.c: v0.011 by Linux MIPS DECstation task force tc6: PMAD-AA , addr = 08:00:2b:1b:2a:6a, irq = 14 tc6: registered as eth0. Address that properly, by printing identification with a single call, making the messages now look like: declance.c: v0.011 by Linux MIPS DECstation task force tc6: PMAD-AA, addr = 08:00:2b:1b:2a:6a, irq = 14 tc6: registered as eth0. Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org> Fixes: 4bcc595 ("printk: reinstate KERN_CONT for printing continuation lines") Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 657ade0 commit fe3a83a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

‎drivers/net/ethernet/amd/declance.c‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,7 @@ static int dec_lance_probe(struct device *bdev, const int type)
10311031
int i, ret;
10321032
unsigned long esar_base;
10331033
unsigned char *esar;
1034+
const char *desc;
10341035

10351036
if (dec_lance_debug && version_printed++ == 0)
10361037
printk(version);
@@ -1216,19 +1217,20 @@ static int dec_lance_probe(struct device *bdev, const int type)
12161217
*/
12171218
switch (type) {
12181219
case ASIC_LANCE:
1219-
printk("%s: IOASIC onboard LANCE", name);
1220+
desc = "IOASIC onboard LANCE";
12201221
break;
12211222
case PMAD_LANCE:
1222-
printk("%s: PMAD-AA", name);
1223+
desc = "PMAD-AA";
12231224
break;
12241225
case PMAX_LANCE:
1225-
printk("%s: PMAX onboard LANCE", name);
1226+
desc = "PMAX onboard LANCE";
12261227
break;
12271228
}
12281229
for (i = 0; i < 6; i++)
12291230
dev->dev_addr[i] = esar[i * 4];
12301231

1231-
printk(", addr = %pM, irq = %d\n", dev->dev_addr, dev->irq);
1232+
printk("%s: %s, addr = %pM, irq = %d\n",
1233+
name, desc, dev->dev_addr, dev->irq);
12321234

12331235
dev->netdev_ops = &lance_netdev_ops;
12341236
dev->watchdog_timeo = 5*HZ;

0 commit comments

Comments
 (0)