public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
To: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH] infiniband-diags: ibqueryerrors: don't exit on reset error
Date: Mon, 31 Oct 2011 23:24:25 -0700	[thread overview]
Message-ID: <20111031232425.9c8bc2ad.weiny2@llnl.gov> (raw)


IBERROR exits the process.  ibqueryerrors should continue despite this error.

Signed-off-by: Ira Weiny <weiny2-i2BcT+NCU+M@public.gmane.org>
---
 src/ibqueryerrors.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/ibqueryerrors.c b/src/ibqueryerrors.c
index d37d268..e070baf 100644
--- a/src/ibqueryerrors.c
+++ b/src/ibqueryerrors.c
@@ -629,7 +629,7 @@ static void clear_port(ib_portid_t * portid, uint16_t cap_mask,
 	if (mask)
 		if (!performance_reset_via(pc, portid, port, mask, ibd_timeout,
 					   IB_GSI_PORT_COUNTERS, ibmad_port))
-			IBERROR("Failed to reset errors %s port %d", node_name,
+			fprintf(stderr, "Failed to reset errors %s port %d\n", node_name,
 				port);
 
 	if (clear_errors && details) {
@@ -653,8 +653,8 @@ static void clear_port(ib_portid_t * portid, uint16_t cap_mask,
 
 		if (!reset_pc_ext(pc, portid, port, mask, ibd_timeout,
 		    ibmad_port))
-			IBERROR("Failed to reset extended data counters %s, "
-				"%s port %d", node_name, portid2str(portid),
+			fprintf(stderr, "Failed to reset extended data counters %s, "
+				"%s port %d\n", node_name, portid2str(portid),
 				port);
 	}
 }
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

                 reply	other threads:[~2011-11-01  6:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111031232425.9c8bc2ad.weiny2@llnl.gov \
    --to=weiny2-i2bct+ncu+m@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox