[ofa-general] [PATCH] infiniband-diags: use shared ibdebug var
Sasha Khapyorsky
sashak at voltaire.com
Thu Sep 6 03:47:58 PDT 2007
Use shared ibdebug variable over diag utils
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
infiniband-diags/src/ibdiag_common.c | 2 ++
infiniband-diags/src/ibnetdiscover.c | 1 -
infiniband-diags/src/ibroute.c | 1 -
infiniband-diags/src/ibtracert.c | 1 -
4 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/infiniband-diags/src/ibdiag_common.c b/infiniband-diags/src/ibdiag_common.c
index e4e381a..bdbed45 100644
--- a/infiniband-diags/src/ibdiag_common.c
+++ b/infiniband-diags/src/ibdiag_common.c
@@ -49,6 +49,8 @@
#include "ibdiag_common.h"
+int ibdebug;
+
FILE *
open_switch_map(char *switch_map)
{
diff --git a/infiniband-diags/src/ibnetdiscover.c b/infiniband-diags/src/ibnetdiscover.c
index ccd70cb..6163290 100644
--- a/infiniband-diags/src/ibnetdiscover.c
+++ b/infiniband-diags/src/ibnetdiscover.c
@@ -89,7 +89,6 @@ static int verbose;
static FILE *f;
char *argv0 = "ibnetdiscover";
-int ibdebug;
static char *switch_map = NULL;
static FILE *switch_map_fp = NULL;
diff --git a/infiniband-diags/src/ibroute.c b/infiniband-diags/src/ibroute.c
index 51d64ed..77beb36 100644
--- a/infiniband-diags/src/ibroute.c
+++ b/infiniband-diags/src/ibroute.c
@@ -59,7 +59,6 @@ static int verbose;
static int dump_all;
char *argv0 = "ibroute";
-int ibdebug;
/*******************************************/
diff --git a/infiniband-diags/src/ibtracert.c b/infiniband-diags/src/ibtracert.c
index 4e404b0..f085fd6 100644
--- a/infiniband-diags/src/ibtracert.c
+++ b/infiniband-diags/src/ibtracert.c
@@ -69,7 +69,6 @@ static int force;
static FILE *f;
char *argv0 = "ibtracert";
-int ibdebug;
static char *switch_map = NULL;
static FILE *switch_map_fp = NULL;
--
1.5.3.1.1.g1e61
More information about the general
mailing list