summaryrefslogtreecommitdiffstats
path: root/net/ieee802154/6lowpan_iphc.c
diff options
context:
space:
mode:
authorAlexander Aring2013-12-12 20:15:25 +0100
committerMarcel Holtmann2013-12-12 21:14:54 +0100
commit841a5ec72c028432f716670c4a7c2e1b70ee1341 (patch)
tree7f5c061987928ff287c1c55b3ffe596c4c670f98 /net/ieee802154/6lowpan_iphc.c
parentBluetooth: Fix test for lookup_dev return value (diff)
downloadkernel-qcow2-linux-841a5ec72c028432f716670c4a7c2e1b70ee1341.tar.gz
kernel-qcow2-linux-841a5ec72c028432f716670c4a7c2e1b70ee1341.tar.xz
kernel-qcow2-linux-841a5ec72c028432f716670c4a7c2e1b70ee1341.zip
6lowpan: fix/move/cleanup debug functions
There are several issues on current debug behaviour. This patch fix the following issues: - Fix debug printout only if DEBUG is defined. - Move debug functions of 6LoWPAN code into 6lowpan header. - Cleanup codestyle of debug functions. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154/6lowpan_iphc.c')
-rw-r--r--net/ieee802154/6lowpan_iphc.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/net/ieee802154/6lowpan_iphc.c b/net/ieee802154/6lowpan_iphc.c
index 57c0b7ad6b6c..88e7da599558 100644
--- a/net/ieee802154/6lowpan_iphc.c
+++ b/net/ieee802154/6lowpan_iphc.c
@@ -58,32 +58,6 @@
#include "6lowpan.h"
-/* print data in line */
-static inline void raw_dump_inline(const char *caller, char *msg,
- unsigned char *buf, int len)
-{
- if (msg)
- pr_debug("%s():%s: ", caller, msg);
- print_hex_dump_debug("", DUMP_PREFIX_NONE,
- 16, 1, buf, len, false);
-}
-
-/*
- * print data in a table format:
- *
- * addr: xx xx xx xx xx xx
- * addr: xx xx xx xx xx xx
- * ...
- */
-static inline void raw_dump_table(const char *caller, char *msg,
- unsigned char *buf, int len)
-{
- if (msg)
- pr_debug("%s():%s:\n", caller, msg);
- print_hex_dump_debug("\t", DUMP_PREFIX_OFFSET,
- 16, 1, buf, len, false);
-}
-
/*
* Uncompress address function for source and
* destination address(non-multicast).