提交 0118e019 编写于 作者: J Joe Perches 提交者: David S. Miller

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: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 763a32bd
...@@ -1031,36 +1031,8 @@ static int __init smc_probe(struct net_device *dev, int ioaddr) ...@@ -1031,36 +1031,8 @@ static int __init smc_probe(struct net_device *dev, int ioaddr)
static void print_packet( byte * buf, int length ) static void print_packet( byte * buf, int length )
{ {
#if 0 #if 0
int i; print_hex_dump_debug(DRV_NAME, DUMP_PREFIX_OFFSET, 16, 1,
int remainder; buf, length, true);
int lines;
pr_dbg("Packet of length %d\n", length);
lines = length / 16;
remainder = length % 16;
for ( i = 0; i < lines ; i ++ ) {
int cur;
printk(KERN_DEBUG);
for ( cur = 0; cur < 8; cur ++ ) {
byte a, b;
a = *(buf ++ );
b = *(buf ++ );
pr_cont("%02x%02x ", a, b);
}
pr_cont("\n");
}
printk(KERN_DEBUG);
for ( i = 0; i < remainder/2 ; i++ ) {
byte a, b;
a = *(buf ++ );
b = *(buf ++ );
pr_cont("%02x%02x ", a, b);
}
pr_cont("\n");
#endif #endif
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册