[ofa-general] [PATCH] infiniband-diags/src/ibdiag_common.c: do not print warning of failed default switch map open
Ira Weiny
weiny2 at llnl.gov
Fri Sep 7 15:19:25 PDT 2007
>From 59f8772d60a4b061eb2e27ded9abecc9b9e83d5c Mon Sep 17 00:00:00 2001
From: Ira K. Weiny <weiny2 at llnl.gov>
Date: Fri, 7 Sep 2007 15:08:20 -0700
Subject: [PATCH] infiniband-diags/src/ibdiag_common.c: do not print warning of failed default
switch map open
This really clutters up some of the diag scripts output now that more of the
tools support the switch map functionality.
Signed-off-by: Ira K. Weiny <weiny2 at llnl.gov>
---
infiniband-diags/src/ibdiag_common.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/infiniband-diags/src/ibdiag_common.c b/infiniband-diags/src/ibdiag_common.c
index e4e381a..d216067 100644
--- a/infiniband-diags/src/ibdiag_common.c
+++ b/infiniband-diags/src/ibdiag_common.c
@@ -64,11 +64,6 @@ open_switch_map(char *switch_map)
#ifdef HAVE_DEFAULT_SWITCH_MAP
} else {
rc = fopen(HAVE_DEFAULT_SWITCH_MAP, "r");
- if (rc == NULL) {
- fprintf(stderr,
- "WARNING failed to open switch map \"%s\" (%s)\n",
- HAVE_DEFAULT_SWITCH_MAP, strerror(errno));
- }
#endif /* HAVE_DEFAULT_SWITCH_MAP */
}
return (rc);
--
1.5.1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-infiniband-diags-src-ibdiag_common.c-do-not-print-w.patch
Type: application/octet-stream
Size: 1100 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20070907/835085ef/attachment.obj>
More information about the general
mailing list