summaryrefslogtreecommitdiff
path: root/lib/debug.h
blob: 09a652916eb145c5a0afbfc12d5e1396deaaf484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* See the file COPYING for licensing information.  */

#define hd(p, l) { int i;		\
    for (i = 1; i <= l; i++) {		\
      printf ("%02x ", p[i-1]);		\
      if (i % 8 == 0) printf (" ");	\
      if (i % 16 == 0) printf ("\n"); }	\
    printf ("\n"); }

#if defined (__cplusplus)
extern "C" {
#endif

void rs_dump_packet (const struct rs_packet *pkt);
void rs_dump_attr (const struct rs_attr *attr);

#if defined (__cplusplus)
}
#endif