Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / rom / usb / classes / rndis / debug.c
blobf652b21d38cc679078245cceccae7a00f2787f4e
1 #include "debug.h"
3 #define DEBUG 1
4 #ifdef DEBUG
5 void dumpmem(void *mem, unsigned long int len)
7 unsigned char *p;
9 if (!mem || !len) { return; }
11 p = (unsigned char *) mem;
13 bug("\n");
17 unsigned char b, c, str[17];
19 for (b = 0; b < 16; b++)
21 c = *p++;
22 str[b] = ((c >= ' ') && (c <= 'z')) ? c : '.';
23 str[b + 1] = 0;
24 bug("%02lx ", c);
25 if (--len == 0) break;
28 while (++b < 16)
30 bug(" ");
33 bug(" %s\n", str);
34 } while (len);
36 bug("\n\n");
39 #endif /* DEBUG */