[PATCH] s390 CHPID types must be treated in hex for lookup table to work (#552844)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 loader/controlunits.sh |    6 +++---
 loader/lsznet.raw      |    2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/loader/controlunits.sh b/loader/controlunits.sh
index 890598d..5364d76 100644
--- a/loader/controlunits.sh
+++ b/loader/controlunits.sh
@@ -83,9 +83,9 @@ readonly -a CU_GROUPCHANNELS=(
 )

 readonly -a CHPIDTYPES=(
-    [10]=OSE
-    [11]=OSD
-    [24]=IQD
+    [0x10]=OSE
+    [0x11]=OSD
+    [0x24]=IQD
 )

 # Searches for a match of argument 1 on the array $CU and sets $cu_idx
diff --git a/loader/lsznet.raw b/loader/lsznet.raw
index a260f6d..fad515f 100644
--- a/loader/lsznet.raw
+++ b/loader/lsznet.raw
@@ -70,7 +70,7 @@ function debug() {
 # Always succeeds and returns 0.
 function search_chpt() {
     local chpidtype_number=$1
-    chpidtype_symbolic=${CHPIDTYPES[$chpidtype_number]}
+    chpidtype_symbolic=${CHPIDTYPES[$((0x$chpidtype_number))]}
     if [ "$chpidtype_symbolic" == "" ]; then
         chpidtype_symbolic="?"
     fi
-- 
1.6.5.7

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux