Commit 5aecaef6 authored by Harvey Harrison's avatar Harvey Harrison Committed by James Toy

Also use the hi/lo helpers.

Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 23809a60
...@@ -1002,12 +1002,11 @@ static char *ti_p(int dev) ...@@ -1002,12 +1002,11 @@ static char *ti_p(int dev)
/* interpreter for logical device numbers (ldn) */ /* interpreter for logical device numbers (ldn) */
static char *ti_l(int val) static char *ti_l(int val)
{ {
const char hex[16] = "0123456789abcdef";
static char answer[2]; static char answer[2];
answer[1] = (char) (0x0); answer[1] = (char) (0x0);
if (val <= MAX_LOG_DEV) if (val <= MAX_LOG_DEV)
answer[0] = hex[val]; answer[0] = hex_asc[val];
else else
answer[0] = '-'; answer[0] = '-';
return (char *) &answer; return (char *) &answer;
......
...@@ -876,8 +876,8 @@ static int ultrastor_abort(struct scsi_cmnd *SCpnt) ...@@ -876,8 +876,8 @@ static int ultrastor_abort(struct scsi_cmnd *SCpnt)
for (i = 0; i < 16; i++) for (i = 0; i < 16; i++)
{ {
unsigned char p = inb(port0 + i); unsigned char p = inb(port0 + i);
out[28 + i * 3] = "0123456789abcdef"[p >> 4]; out[28 + i * 3] = hex_asc_hi(p);
out[29 + i * 3] = "0123456789abcdef"[p & 15]; out[29 + i * 3] = hex_asc_lo(p);
out[30 + i * 3] = ' '; out[30 + i * 3] = ' ';
} }
out[28 + i * 3] = '\n'; out[28 + i * 3] = '\n';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment