summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/smsc
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-08-26 11:49:35 -0700
committerDavid S. Miller <davem@davemloft.net>2015-08-27 13:56:05 -0700
commit0118e01935cae83261f1c52f1c88c6514ef330f6 (patch)
tree681c32bc0ff989a89135d1c1f7975e3d86769504 /drivers/net/ethernet/smsc
parent763a32bd0fea2893d4b87f20f9f9c278d776fbf6 (diff)
downloadop-kernel-dev-0118e01935cae83261f1c52f1c88c6514ef330f6.zip
op-kernel-dev-0118e01935cae83261f1c52f1c88c6514ef330f6.tar.gz
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 <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/smsc')
-rw-r--r--drivers/net/ethernet/smsc/smc9194.c32
1 files changed, 2 insertions, 30 deletions
diff --git a/drivers/net/ethernet/smsc/smc9194.c b/drivers/net/ethernet/smsc/smc9194.c
index 67d9fde..664f596 100644
--- a/drivers/net/ethernet/smsc/smc9194.c
+++ b/drivers/net/ethernet/smsc/smc9194.c
@@ -1031,36 +1031,8 @@ err_out:
static void print_packet( byte * buf, int length )
{
#if 0
- int i;
- int remainder;
- 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");
+ print_hex_dump_debug(DRV_NAME, DUMP_PREFIX_OFFSET, 16, 1,
+ buf, length, true);
#endif
}
#endif
OpenPOWER on IntegriCloud