diff options
author | Mike Strosaker <strosake@austin.ibm.com> | 2005-06-23 02:09:41 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-06-23 02:09:41 -0400 |
commit | 8f586b2243198194240626fd9695da5564ffa7ee (patch) | |
tree | 716ba2e20edb04a354210f626b73b56e156f171b /arch/ppc64/kernel/setup.c | |
parent | ae209cf10086b97e92e39af7cec0f84b21b6fca3 (diff) |
[PATCH] correct printing to operator panel
This patch corrects the printing of progress indicators to the op
panel on p/iSeries ppc64 systems. Each discrete reference code should
begin with a form feed char to clear the op panel, and the first and
second lines should be separated with a CR/LF sequence. Padding with
spaces is not necessary.
Also, capitalize the hex value printed on the first line, to be
consistent with the values printed by firmware, service processor,
etc.
It turns out that there's an ibm,form-feed property; this patch uses
it in the pSeries-specific progress routine. This patch also checks
the number of rows and the specific width of each row (the second row
on power5 systems can actually hold 80 characters). If the displayed
text is too wide for the physical display, it can be viewed in the ASM
menus, or by selecting option 14 on the op panel.
Signed-off-by: Mike Strosaker <strosake@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/setup.c')
-rw-r--r-- | arch/ppc64/kernel/setup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/ppc64/kernel/setup.c b/arch/ppc64/kernel/setup.c index 10222008fe20..8a1ca695f8a7 100644 --- a/arch/ppc64/kernel/setup.c +++ b/arch/ppc64/kernel/setup.c | |||
@@ -1080,11 +1080,11 @@ void __init setup_arch(char **cmdline_p) | |||
1080 | static void ppc64_do_msg(unsigned int src, const char *msg) | 1080 | static void ppc64_do_msg(unsigned int src, const char *msg) |
1081 | { | 1081 | { |
1082 | if (ppc_md.progress) { | 1082 | if (ppc_md.progress) { |
1083 | char buf[32]; | 1083 | char buf[128]; |
1084 | 1084 | ||
1085 | sprintf(buf, "%08x \n", src); | 1085 | sprintf(buf, "%08X\n", src); |
1086 | ppc_md.progress(buf, 0); | 1086 | ppc_md.progress(buf, 0); |
1087 | sprintf(buf, "%-16s", msg); | 1087 | snprintf(buf, 128, "%s", msg); |
1088 | ppc_md.progress(buf, 0); | 1088 | ppc_md.progress(buf, 0); |
1089 | } | 1089 | } |
1090 | } | 1090 | } |