From patchwork Tue Jan 12 09:22:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Khapyorsky X-Patchwork-Id: 72344 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0C9JcDK012791 for ; Tue, 12 Jan 2010 09:19:38 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751520Ab0ALJTh (ORCPT ); Tue, 12 Jan 2010 04:19:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751651Ab0ALJTh (ORCPT ); Tue, 12 Jan 2010 04:19:37 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:38905 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752410Ab0ALJTf (ORCPT ); Tue, 12 Jan 2010 04:19:35 -0500 Received: by bwz27 with SMTP id 27so915564bwz.21 for ; Tue, 12 Jan 2010 01:19:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:received:date:from:to :cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=GBsimMapkkaQcHzPZ9OTzDkPGx3tD3s0u0eDl9M2qd0=; b=CRUFoKexfwnvYL2rGR7SdDRL/t91hbu05mFLTia6yADZsIZbFlbXrLYnsKiy0qsXWo TgdO8kTazYApKL1q18Lqcdrum4z+39cw2mCjx4ABl8SnYmletli7AfqSD+GXhYL+PBV0 qppxoYHQ8PZdEgeiLl2wipGLeBrTapVWtMopE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=S90Vi005HhgcL8OAPjwgGtX0ypsH1yZ3Fhh79hOlG5nxxqw4/hNJMpkYZ4S0mETG7T VnYq6wBtnAbkBhymOdFTKMJ03WmgtJKiRCaN0eqfx4nvy7MlJ21PeTIZRGS3KuZCYIIF du2u7YGWj+8TmZp73cvK0ry5qjedzcU0znXrw= Received: by 10.204.138.143 with SMTP id a15mr3004402bku.153.1263287972772; Tue, 12 Jan 2010 01:19:32 -0800 (PST) Received: from me.localdomain ([72.14.240.161]) by mx.google.com with ESMTPS id 14sm9270221bwz.13.2010.01.12.01.19.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 12 Jan 2010 01:19:31 -0800 (PST) Received: by me.localdomain (Postfix, from userid 1000) id 23A5511DF8; Tue, 12 Jan 2010 11:22:46 +0200 (IST) Date: Tue, 12 Jan 2010 11:22:46 +0200 From: Sasha Khapyorsky To: linux-rdma Cc: Sean Hefty , "'Leonid Keller'" , ofw_list , Yevgeny Kliteynik , Regev Lev Subject: [PATCH] infiniband-diags: -V, --version: exit with zero status Message-ID: <20100112092246.GE26089@me> References: <2ED289D4E09FBD4D92D911E869B97FDD024A3B3F@mtlexch01.mtl.com> <20100105101346.GM26940@me> <2ED289D4E09FBD4D92D911E869B97FDD024A3D1F@mtlexch01.mtl.com> <4DB33AEBD6F349EABE6AA1834AFBFC6B@amr.corp.intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4DB33AEBD6F349EABE6AA1834AFBFC6B@amr.corp.intel.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/infiniband-diags/src/ibdiag_common.c b/infiniband-diags/src/ibdiag_common.c index 735b898..99861f1 100644 --- a/infiniband-diags/src/ibdiag_common.c +++ b/infiniband-diags/src/ibdiag_common.c @@ -147,7 +147,7 @@ static int process_opt(int ch, char *optarg) break; case 'V': fprintf(stderr, "%s %s\n", prog_name, get_build_version()); - exit(2); + exit(0); case 'e': madrpc_show_errors(1); break;