Fix for 2 typos noticed by Gal Rosen <galr@storwize.com>
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 8 Oct 2009 16:24:47 +0000 (16:24 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 8 Oct 2009 16:24:47 +0000 (16:24 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1188 d57e44dd-8a1f-0410-8b47-8ef2f437770f

qla2x00t/qla2x00-target/Kconfig
qla2x00t/qla_attr.c

index 856ea60..539cbb4 100644 (file)
@@ -22,7 +22,7 @@ config QLA_TGT_DEBUG_SRR
        bool "SRR debugging"
        depends on SCST_QLA_TGT_ADDON
        help
-         Turns on restransmitting packets (SRR)
+         Turns on retransmitting packets (SRR)
          debugging. In this mode some CTIOs will be "broken" to force the
          initiator to issue a retransmit request. Useful for debugging and lead to big
          performance loss.
index 46a3cc4..0ba6180 100644 (file)
@@ -303,24 +303,6 @@ qla2x00_show_port_database(struct device *dev,
                         MBC_PORT_NODE_NAME_LIST, le16_to_cpu(mc.mb[1]));
 
        if (IS_FWI2_CAPABLE(ha)) {
-               port_data_t *pmap2x = pmap;
-
-               entries = le16_to_cpu(mc.mb[1])/sizeof(*pmap2x);
-
-               for (i = 0; (i < entries) && (size < max_size); ++i) {
-                       size += scnprintf(buffer+size, max_size-size,
-                                        "%04x %02x%02x%02x%02x%02x%02x%02x%02x\n",
-                                        le16_to_cpu(pmap2x[i].loop_id),
-                                        pmap2x[i].port_name[7],
-                                        pmap2x[i].port_name[6],
-                                        pmap2x[i].port_name[5],
-                                        pmap2x[i].port_name[4],
-                                        pmap2x[i].port_name[3],
-                                        pmap2x[i].port_name[2],
-                                        pmap2x[i].port_name[1],
-                                        pmap2x[i].port_name[0]);
-               }
-       } else {
                port24_data_t *pmap24 = pmap;
 
                entries = le16_to_cpu(mc.mb[1])/sizeof(*pmap24);
@@ -338,6 +320,24 @@ qla2x00_show_port_database(struct device *dev,
                                         pmap24[i].port_name[1],
                                         pmap24[i].port_name[0]);
                }
+       } else {
+               port_data_t *pmap2x = pmap;
+
+               entries = le16_to_cpu(mc.mb[1])/sizeof(*pmap2x);
+
+               for (i = 0; (i < entries) && (size < max_size); ++i) {
+                       size += scnprintf(buffer+size, max_size-size,
+                                        "%04x %02x%02x%02x%02x%02x%02x%02x%02x\n",
+                                        le16_to_cpu(pmap2x[i].loop_id),
+                                        pmap2x[i].port_name[7],
+                                        pmap2x[i].port_name[6],
+                                        pmap2x[i].port_name[5],
+                                        pmap2x[i].port_name[4],
+                                        pmap2x[i].port_name[3],
+                                        pmap2x[i].port_name[2],
+                                        pmap2x[i].port_name[1],
+                                        pmap2x[i].port_name[0]);
+               }
        }
 
 out_free: