7 //TODO del it or move to debug section
8 void printBuf (char * buf, int len)
11 char local_buf[3*16 + 2*16 + 1 + 8];
14 LOGI("BUFFER [%d]:\n", len);
15 for ( i = 0; i < len/16 + 1; i++)
17 memset(local_buf, ' ', 5*16 + 8);
19 sprintf(local_buf, "0x%04X: ", i);
21 p2 = local_buf + 8 + 3*17;
22 for ( j = 0; j < 16; j++)
25 sprintf(p1, "%02X ",(unsigned char) *buf);
28 sprintf(p2, "%c ",(int)*buf);
37 LOGI("%s\n",local_buf);