Skip to content

Commit 78182ae

Browse files
frankjaahuth
authored andcommitted
pc-bios: s390x: Use ebcdic2ascii table
Why should we do conversion of a ebcdic value if we have a handy table where we could look up the ascii value instead? Signed-off-by: Janosch Frank <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Reviewed-by: Thomas Huth <[email protected]> Message-Id: <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1 parent add923b commit 78182ae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pc-bios/s390-ccw/bootmap.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,7 @@ static void print_eckd_ldl_msg(ECKD_IPL_mode_t mode)
328328
msg[0] = '2';
329329
break;
330330
default:
331-
msg[0] = vlbl->LDL_version;
332-
msg[0] &= 0x0f; /* convert EBCDIC */
333-
msg[0] |= 0x30; /* to ASCII (digit) */
331+
msg[0] = ebc2asc[vlbl->LDL_version];
334332
msg[1] = '?';
335333
break;
336334
}

0 commit comments

Comments
 (0)