Skip to content

Commit 0118e01

Browse files
JoePerchesdavem330
authored andcommitted
smsc9194: Remove uncompilable #if 0'd use of pr_dbg
No pr_dbg method exists. While this code is #if 0'd, it'd be nicer to use the generic hex_dump, so use it instead. Signed-off-by: Joe Perches <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 763a32b commit 0118e01

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

drivers/net/ethernet/smsc/smc9194.c

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,36 +1031,8 @@ static int __init smc_probe(struct net_device *dev, int ioaddr)
10311031
static void print_packet( byte * buf, int length )
10321032
{
10331033
#if 0
1034-
int i;
1035-
int remainder;
1036-
int lines;
1037-
1038-
pr_dbg("Packet of length %d\n", length);
1039-
lines = length / 16;
1040-
remainder = length % 16;
1041-
1042-
for ( i = 0; i < lines ; i ++ ) {
1043-
int cur;
1044-
1045-
printk(KERN_DEBUG);
1046-
for ( cur = 0; cur < 8; cur ++ ) {
1047-
byte a, b;
1048-
1049-
a = *(buf ++ );
1050-
b = *(buf ++ );
1051-
pr_cont("%02x%02x ", a, b);
1052-
}
1053-
pr_cont("\n");
1054-
}
1055-
printk(KERN_DEBUG);
1056-
for ( i = 0; i < remainder/2 ; i++ ) {
1057-
byte a, b;
1058-
1059-
a = *(buf ++ );
1060-
b = *(buf ++ );
1061-
pr_cont("%02x%02x ", a, b);
1062-
}
1063-
pr_cont("\n");
1034+
print_hex_dump_debug(DRV_NAME, DUMP_PREFIX_OFFSET, 16, 1,
1035+
buf, length, true);
10641036
#endif
10651037
}
10661038
#endif

0 commit comments

Comments
 (0)