diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/netfilter/ip6t_LOG.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/netfilter/ip6t_LOG.c b/net/ipv6/netfilter/ip6t_LOG.c index af4ee11f2066..4c7ddac7c62b 100644 --- a/net/ipv6/netfilter/ip6t_LOG.c +++ b/net/ipv6/netfilter/ip6t_LOG.c | |||
@@ -414,9 +414,9 @@ ip6t_log_packet(u_int8_t pf, | |||
414 | p = NULL; | 414 | p = NULL; |
415 | 415 | ||
416 | if (p != NULL) { | 416 | if (p != NULL) { |
417 | for (i = 0; i < len; i++) | 417 | printk("%02x", *p++); |
418 | printk("%02x%s", p[i], | 418 | for (i = 1; i < len; i++) |
419 | i == len - 1 ? "" : ":"); | 419 | printk(":%02x", p[i]); |
420 | } | 420 | } |
421 | printk(" "); | 421 | printk(" "); |
422 | 422 | ||