Skip to contentSkip to conversation

smc911x: PRINT_PKT doesnt count on odd remainder

PATCH In review [email protected] 2 participants 2 messages Sep 13, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/12 smc911x: PRINT_PKT doesnt count on odd remainder

PRINT_PKT doesnt count on odd remainder...

drivers/net/smc911x.c +1 -0
Index: linux-2.6.18-rc4/drivers/net/smc911x.c
===================================================================
@@ -202,6 +202,7 @@
 		b = *buf++;
 		printk("%02x%02x ", a, b);
 	}
+	if (remainder & 1) printk("%02x", *buf);
 	printk("\n");
 }
 #else
#1 lore raw

[email protected] <[email protected]> :
[...]

drivers/net/smc911x.c line 205

Quoted 5 lines
drivers/net/smc911x.c +1 -0
@@ -202,6 +202,7 @@
 		b = *buf++;
 		printk("%02x%02x ", a, b);
 	}
+	if (remainder & 1) printk("%02x", *buf);

printk should be on the next line.

Signature · 1 line
Ueimor