]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/ipv4/netfilter/nf_nat_snmp_basic.c
netfilter: Use pr_cont where appropriate
[linux.git] / net / ipv4 / netfilter / nf_nat_snmp_basic.c
index c9b52c361da2e6acc746c2de86d8c7f3af0a9b39..ef49989c93b1918ab35b1b752981e8c22357c118 100644 (file)
@@ -998,18 +998,6 @@ static unsigned char snmp_trap_decode(struct asn1_ctx *ctx,
  *
  *****************************************************************************/
 
-static void hex_dump(const unsigned char *buf, size_t len)
-{
-       size_t i;
-
-       for (i = 0; i < len; i++) {
-               if (i && !(i % 16))
-                       printk("\n");
-               printk("%02x ", *(buf + i));
-       }
-       printk("\n");
-}
-
 /*
  * Parse and mangle SNMP message according to mapping.
  * (And this is the fucking 'basic' method).
@@ -1026,7 +1014,8 @@ static int snmp_parse_mangle(unsigned char *msg,
        struct snmp_object *obj;
 
        if (debug > 1)
-               hex_dump(msg, len);
+               print_hex_dump(KERN_DEBUG, "", DUMP_PREFIX_NONE, 16, 1,
+                              msg, len, 0);
 
        asn1_open(&ctx, msg, len);