From patchwork Thu Jul 21 00:04:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 993442 X-Patchwork-Delegate: ira.weiny@intel.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p6L04D58029594 for ; Thu, 21 Jul 2011 00:04:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752102Ab1GUAEM (ORCPT ); Wed, 20 Jul 2011 20:04:12 -0400 Received: from nspiron-2.llnl.gov ([128.115.41.82]:1139 "EHLO nspiron-2.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751957Ab1GUAEL (ORCPT ); Wed, 20 Jul 2011 20:04:11 -0400 X-Attachments: None Received: from eris.llnl.gov (HELO trebuchet) ([134.9.2.84]) by nspiron-2.llnl.gov with SMTP; 20 Jul 2011 17:04:11 -0700 Date: Wed, 20 Jul 2011 17:04:11 -0700 From: Ira Weiny To: "linux-rdma@vger.kernel.org" Subject: [PATCH] infiniband-diags: ibqueryerrors fix null threshold_str Message-Id: <20110720170411.9ae1fc90.weiny2@llnl.gov> X-Mailer: Sylpheed 3.1.1 (GTK+ 2.18.9; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 21 Jul 2011 00:04:13 +0000 (UTC) When printing "(null)" was being printed if there was no threshold file Signed-off-by: Ira Weiny --- src/ibqueryerrors.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ibqueryerrors.c b/src/ibqueryerrors.c index 1bba0e0..869316b 100644 --- a/src/ibqueryerrors.c +++ b/src/ibqueryerrors.c @@ -90,7 +90,7 @@ static char *threshold_file = DEF_THRES_FILE; /* define a "packet" with threshold values in it */ uint8_t thresholds[1204] = { 0 }; -char * threshold_str = NULL; +char * threshold_str = ""; static void set_thres(char *name, uint32_t val) {