infiniband-diags/vendstat: Fixed general info query
PATCH 1/1 infiniband-diags/vendstat: Fixed general info query
Fixed general info query
There was no output when query succeeded
--- src/vendstat.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
src/vendstat.c +1 -0
@@ -375,6 +375,7 @@ int main(int argc, char **argv) gi = (is3_general_info_t *) & buf;if (do_vendor (&portid, srcport,IB_MLX_VENDOR_CLASS ,IB_MAD_METHOD_GET ,IB_MLX_IS3_GENERAL_INFO ,0 , gi)) +IBERROR ("generalinfo query" );if (general_info) {/* dump IS3 or IS4 general info here */
Signature · 6 lines
1.5.5 -- 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
Quoted 3 lines · Eli Dorfman
Fixed general info query
There was no output when query succeeded
Do you mean failed ?
-- Hal
Quoted 11 lines
--- src/vendstat.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)src/vendstat.c +0
-0
src/vendstat.c int main(int argc, char **argv) · line 381
Quoted 7 lines
src/vendstat.c +1
-0@@ -375,6 +375,7 @@ int main(int argc, char **argv) gi = (is3_general_info_t *) & buf;if (do_vendor (&portid, srcport,IB_MLX_VENDOR_CLASS ,IB_MAD_METHOD_GET ,IB_MLX_IS3_GENERAL_INFO ,0 , gi)) +IBERROR ("generalinfo query" );if (general_info) {/* dump IS3 or IS4 general info here */
--
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
Quoted 6 lines · Hal Rosenstock
Quoted 3 lines · Eli Dorfman
Fixed general info query
There was no output when query succeeded
Do you mean failed ?
No I meant succeeded.
Since the IBERROR was missing the print of GeneralInfo is skipped.
If it fails then the "if (general_info)" code is reached but it will print garbage.
Eli
Quoted 19 lines
-- Hal
Quoted 16 lines
--- src/vendstat.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)src/vendstat.c +1
-0@@ -375,6 +375,7 @@ int main(int argc, char **argv) gi = (is3_general_info_t *) & buf;if (do_vendor (&portid, srcport,IB_MLX_VENDOR_CLASS ,IB_MAD_METHOD_GET ,IB_MLX_IS3_GENERAL_INFO ,0 , gi)) +IBERROR ("generalinfo query" );
Quoted 3 lines
src/vendstat.c int main(int argc, char **argv) · line 381
Quoted 2 lines
src/vendstat.c +0
-0if (general_info) {/* dump IS3 or IS4 general info here */
--
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
Ira Weiny
AppliedQuoted 11 lines · On Sat, 30 Apr 2011 23:28:57 -0700 Eli Dorfman…
Quoted 6 lines · Hal Rosenstock
Quoted 3 lines · Eli Dorfman
Fixed general info query
There was no output when query succeeded
Do you mean failed ?
No I meant succeeded.
Since the IBERROR was missing the print of GeneralInfo is skipped.
If it fails then the "if (general_info)" code is reached but it will print garbage.
Thanks applied,
Ira
Quoted 26 lines
Eli
Quoted 22 lines
-- Hal
Quoted 18 lines
--- src/vendstat.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)src/vendstat.c +1
-0@@ -375,6 +375,7 @@ int main(int argc, char **argv) gi = (is3_general_info_t *) & buf;if (do_vendor (&portid, srcport,IB_MLX_VENDOR_CLASS ,IB_MAD_METHOD_GET ,IB_MLX_IS3_GENERAL_INFO ,0 , gi)) +IBERROR ("generalinfo query" );if (general_info) {/* dump IS3 or IS4 general info here */
Signature · 9 lines
Ira Weiny Math Programmer/Computer Scientist Lawrence Livermore National Lab 925-423-8008 [email protected] -- 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