1 /* Copyright 2011 NORDUnet A/S. All rights reserved.
2 See the file COPYING for licensing information. */
4 #define hd(p, l) { int i; \
5 for (i = 1; i <= l; i++) { \
6 printf ("%02x ", p[i-1]); \
7 if (i % 8 == 0) printf (" "); \
8 if (i % 16 == 0) printf ("\n"); } \
11 #if defined (__cplusplus)
17 void rs_dump_packet (const struct rs_packet *pkt);
18 void rs_dump_attr (const struct rs_attr *attr);
19 int _rs_debug (const char *fmt, ...);
22 #define rs_debug(x) _rs_debug x
24 #define rs_debug(x) do {;} while (0)
27 #if defined (__cplusplus)