From patchwork Fri Feb 8 00:45:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Chu X-Patchwork-Id: 2113851 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 12736DFB7B for ; Fri, 8 Feb 2013 00:54:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757237Ab3BHAyg (ORCPT ); Thu, 7 Feb 2013 19:54:36 -0500 Received: from prdiron-2.llnl.gov ([128.15.143.172]:60103 "EHLO prdiron-2.llnl.gov" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757005Ab3BHAyf (ORCPT ); Thu, 7 Feb 2013 19:54:35 -0500 X-Greylist: delayed 573 seconds by postgrey-1.27 at vger.kernel.org; Thu, 07 Feb 2013 19:54:35 EST X-Attachments: Received: from auk59.llnl.gov (HELO [134.9.93.24]) ([134.9.93.24]) by prdiron-2.llnl.gov with ESMTP; 07 Feb 2013 16:45:12 -0800 Subject: [PATCH 2/2] ibsim: Output error on bad input to PerformanceSet From: Albert Chu To: linux-rdma@vger.kernel.org Date: Thu, 07 Feb 2013 16:45:12 -0800 Message-Id: <1360284312.17736.155.camel@auk59.llnl.gov> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-19.el5) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Albert Chu --- ibsim/sim_cmd.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ibsim/sim_cmd.c b/ibsim/sim_cmd.c index 83ad52d..4822a0b 100644 --- a/ibsim/sim_cmd.c +++ b/ibsim/sim_cmd.c @@ -1086,6 +1086,7 @@ static int do_perf_counter_set(FILE *f, char *line) pc->vl_xmit_wait_counters.PortVLXmitWait[vl] = check_limit(&value, GS_PERF_VL_XMIT_WAIT_COUNTERS_LIMIT); } else { + fprintf(f, "# attribute %s not found\n", attr); return -1; } fprintf(f, "%s.%s has been set to %"PRIu64"\n", attr, field, value);