aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_main.c
diff options
context:
space:
mode:
authorUrsula Braun <braunu@de.ibm.com>2007-06-20 06:55:18 -0400
committerJeff Garzik <jeff@garzik.org>2007-06-20 19:12:41 -0400
commitd78f6642bea3b8f064dcb9a17db58593ef8cc0fb (patch)
treee9e52278f7ab2f1f2b3c21e488f8e9b7001a514c /drivers/s390/net/qeth_main.c
parent031ae4deb095a1f18a842740459c5ae184ec931c (diff)
s390: print correct level for HiperSockets devices
For real HiperSockets the EBCDIC-ASCII conversion is not necessary. This is only needed for z/VM GuestLAN devices. Signed-off-by: Ursula Braun <braunu@de.ibm.com> Signed-off-by: Frank Pavlic <fpavlic@de.ibm.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/s390/net/qeth_main.c')
-rw-r--r--drivers/s390/net/qeth_main.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/drivers/s390/net/qeth_main.c b/drivers/s390/net/qeth_main.c
index 0b96d49dd636..ea2fd980cb45 100644
--- a/drivers/s390/net/qeth_main.c
+++ b/drivers/s390/net/qeth_main.c
@@ -7797,15 +7797,17 @@ qeth_print_status_message(struct qeth_card *card)
7797 } 7797 }
7798 /* fallthrough */ 7798 /* fallthrough */
7799 case QETH_CARD_TYPE_IQD: 7799 case QETH_CARD_TYPE_IQD:
7800 card->info.mcl_level[0] = (char) _ebcasc[(__u8) 7800 if (card->info.guestlan) {
7801 card->info.mcl_level[0]]; 7801 card->info.mcl_level[0] = (char) _ebcasc[(__u8)
7802 card->info.mcl_level[1] = (char) _ebcasc[(__u8) 7802 card->info.mcl_level[0]];
7803 card->info.mcl_level[1]]; 7803 card->info.mcl_level[1] = (char) _ebcasc[(__u8)
7804 card->info.mcl_level[2] = (char) _ebcasc[(__u8) 7804 card->info.mcl_level[1]];
7805 card->info.mcl_level[2]]; 7805 card->info.mcl_level[2] = (char) _ebcasc[(__u8)
7806 card->info.mcl_level[3] = (char) _ebcasc[(__u8) 7806 card->info.mcl_level[2]];
7807 card->info.mcl_level[3]]; 7807 card->info.mcl_level[3] = (char) _ebcasc[(__u8)
7808 card->info.mcl_level[QETH_MCL_LENGTH] = 0; 7808 card->info.mcl_level[3]];
7809 card->info.mcl_level[QETH_MCL_LENGTH] = 0;
7810 }
7809 break; 7811 break;
7810 default: 7812 default:
7811 memset(&card->info.mcl_level[0], 0, QETH_MCL_LENGTH + 1); 7813 memset(&card->info.mcl_level[0], 0, QETH_MCL_LENGTH + 1);