revert between 56095 -> 55830 in arch
[AROS.git] / rom / usb / classes / arosx / debug.c
blobf7e5cd15855eb00db45e23c78b52cda7c0562cb8
2 #include "debug.h"
4 #include "arosx.class.h"
6 void nDebugMem(struct Library *ps, UBYTE *rptr, ULONG rptlen) {
7 char fmtstr[108];
8 STRPTR fmtptr;
9 UWORD cnt;
10 UWORD pos = 0;
12 while(rptlen)
14 fmtptr = fmtstr;
15 cnt = 16;
16 *fmtptr++ = '%';
17 *fmtptr++ = '0';
18 *fmtptr++ = '4';
19 *fmtptr++ = 'l';
20 *fmtptr++ = 'x';
21 *fmtptr++ = ':';
22 *fmtptr++ = ' ';
25 *fmtptr++ = '%';
26 *fmtptr++ = '0';
27 *fmtptr++ = '2';
28 *fmtptr++ = 'l';
29 *fmtptr++ = 'x';
30 //*fmtptr++ = 'd';
31 if(--cnt)
33 *fmtptr++ = ' ';
35 --rptlen;
36 } while(cnt && rptlen);
37 *fmtptr = 0;
38 psdAddErrorMsg(RETURN_WARN, (STRPTR)libname, fmtstr, pos,
39 rptr[0], rptr[1], rptr[2], rptr[3], rptr[4], rptr[5], rptr[6], rptr[7],
40 rptr[8], rptr[9], rptr[10], rptr[11], rptr[12], rptr[13], rptr[14], rptr[15]);
41 rptr += 16;
42 pos += 16;