Lines Matching refs:lx
89 int j, lx = 0; in hex_dump_to_buffer() local
108 lx += scnprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
120 lx += scnprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
131 lx += scnprintf(linebuf + lx, linebuflen - lx, in hex_dump_to_buffer()
138 for (j = 0; (j < len) && (lx + 3) <= linebuflen; j++) { in hex_dump_to_buffer()
140 linebuf[lx++] = hex_asc_hi(ch); in hex_dump_to_buffer()
141 linebuf[lx++] = hex_asc_lo(ch); in hex_dump_to_buffer()
142 linebuf[lx++] = ' '; in hex_dump_to_buffer()
145 lx--; in hex_dump_to_buffer()
153 while (lx < (linebuflen - 1) && lx < (ascii_column - 1)) in hex_dump_to_buffer()
154 linebuf[lx++] = ' '; in hex_dump_to_buffer()
155 for (j = 0; (j < len) && (lx + 2) < linebuflen; j++) { in hex_dump_to_buffer()
157 linebuf[lx++] = (isascii(ch) && isprint(ch)) ? ch : '.'; in hex_dump_to_buffer()
160 linebuf[lx++] = '\0'; in hex_dump_to_buffer()