Lines Matching refs:linebuf
53 char *linebuf, size_t linebuflen, bool ascii) in hex_dump_to_buffer() argument
85 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
96 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
107 ret = snprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
119 linebuf[lx++] = hex_asc_hi(ch); in hex_dump_to_buffer()
122 linebuf[lx++] = hex_asc_lo(ch); in hex_dump_to_buffer()
125 linebuf[lx++] = ' '; in hex_dump_to_buffer()
136 linebuf[lx++] = ' '; in hex_dump_to_buffer()
142 linebuf[lx++] = (isascii(ch) && isprint(ch)) ? ch : '.'; in hex_dump_to_buffer()
145 linebuf[lx] = '\0'; in hex_dump_to_buffer()
148 linebuf[lx++] = '\0'; in hex_dump_to_buffer()
187 char linebuf[32 * 3 + 2 + 32 + 1]; in print_hex_dump() local
197 linebuf, sizeof(linebuf), ascii); in print_hex_dump()
201 printf("%s%p: %s\n", prefix_str, ptr + i, linebuf); in print_hex_dump()
204 printf("%s%.8x: %s\n", prefix_str, i, linebuf); in print_hex_dump()
207 printf("%s%s\n", prefix_str, linebuf); in print_hex_dump()