Skip to contentSkip to conversation

infiniband-diags/: Cosmetic changes, mostly typos

PATCH In review Keshetti Mahesh 2 participants 2 messages Sep 15, 2009 – Sep 19, 2009 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 infiniband-diags/: Cosmetic changes, mostly typos

Cosmetic changes

---

(quoted diff) +0 -0

b/infiniband-diags/scripts/ibcheckwidth.in
index 6b723c5..cbb154c 100644

infiniband-diags/scripts/ibcheckwidth.in +0 -1
@@ -77,7 +77,7 @@ BEGIN {
 function check_node(lid)
 {
        nodechecked=1
-       if (system("'$IBPATH'/ibchecknode'"$ca_info"' '$gflags'

'$verbose' " lid)) {
+ if (system("'$IBPATH'/ibchecknode '"$ca_info"' '$gflags'

'$verbose' " lid)) {
                ne++
                badnode=1
                return
@@ -113,7 +113,7 @@ function check_node(lid)
                }
                sub("\\(.*\\)", "", port)
                gsub("[\\[\\]]", "", port)

- if (system("'$IBPATH'/ibcheckportwidth'"$ca_info"'
'$gflags' '$verbose' " lid " " port)) {
+ if (system("'$IBPATH'/ibcheckportwidth '"$ca_info"'
'$gflags' '$verbose' " lid " " port)) {
if (!'$v' && oldlid != lid) {
print "# Checked " ntype ": nodeguid
0x" nodeguid " with failure"
oldlid = lid

(quoted diff) +0 -0

b/infiniband-diags/src/ibportstate.c
index 76e74f7..018bc9a 100644

infiniband-diags/src/ibportstate.c +1 -1
@@ -349,7 +349,7 @@ int main(int argc, char **argv)
                            get_port_info(&peerportid, data, peerlocalportnum,
                                          port_op);
                        if (err < 0)
-                               IBERROR("smp query peer portinfofailed");
+                               IBERROR("smp query peer portinfo failed");
 
                        mad_decode_field(data, IB_PORT_LINK_WIDTH_ENABLED_F,
                                         &peerlwe);
(quoted diff) +0 -0

b/infiniband-diags/man/ibcheckportwidth.8
index 85c06fc..c368467 100644

infiniband-diags/man/ibcheckportwidth.8 +1 -1
@@ -4,7 +4,7 @@
 ibcheckportwidth \- validate IB port for 1x link width
 
 .SH SYNOPSIS
-.B ibcheckport
+.B ibcheckportwidth
 [\-h] [\-v] [\-N | \-nocolor] [\-G] [\-C ca_name] [\-P ca_port]
 [\-t(imeout) timeout_ms]  <lid|guid> <port>
 --

1.6.4.2

Signature · 5 lines
Keshetti Mahesh
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw
Quoted 3 lines · Keshetti Mahesh

Cosmetic changes

The patch is malformed (broken long lines and mangled whitespaces).

Applied by hands. Thanks.

Sasha

Quoted 67 lines

---

infiniband-diags/scripts/ibcheckwidth.in +1 -1
index 6b723c5..cbb154c 100644
@@ -77,7 +77,7 @@ BEGIN {
 function check_node(lid)
 {
        nodechecked=1
-       if (system("'$IBPATH'/ibchecknode'"$ca_info"' '$gflags'
 '$verbose' " lid)) {
+       if (system("'$IBPATH'/ibchecknode '"$ca_info"' '$gflags'
 '$verbose' " lid)) {
                ne++

badnode=1
return

infiniband-diags/scripts/ibcheckwidth.in +1 -1
@@ -113,7 +113,7 @@ function check_node(lid)
                }
                sub("\\(.*\\)", "", port)
                gsub("[\\[\\]]", "", port)
-               if (system("'$IBPATH'/ibcheckportwidth'"$ca_info"'
 '$gflags' '$verbose' " lid " " port)) {
+               if (system("'$IBPATH'/ibcheckportwidth '"$ca_info"'
 '$gflags' '$verbose' " lid " " port)) {
                        if (!'$v' && oldlid != lid) {

print "# Checked " ntype ": nodeguid
0x" nodeguid " with failure"
oldlid = lid

infiniband-diags/src/ibportstate.c +1 -1
index 76e74f7..018bc9a 100644
@@ -349,7 +349,7 @@ int main(int argc, char **argv)
                            get_port_info(&peerportid, data, peerlocalportnum,
                                          port_op);
                        if (err < 0)
-                               IBERROR("smp query peer portinfofailed");
+                               IBERROR("smp query peer portinfo failed");
 
                        mad_decode_field(data, IB_PORT_LINK_WIDTH_ENABLED_F,
                                         &peerlwe);
infiniband-diags/man/ibcheckportwidth.8 +1 -1
index 85c06fc..c368467 100644
@@ -4,7 +4,7 @@
 ibcheckportwidth \- validate IB port for 1x link width
 
 .SH SYNOPSIS
-.B ibcheckport
+.B ibcheckportwidth
 [\-h] [\-v] [\-N | \-nocolor] [\-G] [\-C ca_name] [\-P ca_port]
 [\-t(imeout) timeout_ms]  <lid|guid> <port>
 --

1.6.4.2

Signature · 5 lines
Keshetti Mahesh
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html