From patchwork Tue Mar 30 20:45:35 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jim Garlick X-Patchwork-Id: 89392 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2UKjoxQ021926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 30 Mar 2010 20:46:27 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NwiJj-00040Q-Bl; Tue, 30 Mar 2010 20:45:43 +0000 Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NwiJi-00040L-1g for v9fs-developer@lists.sourceforge.net; Tue, 30 Mar 2010 20:45:42 +0000 Received-SPF: pass (sfi-mx-2.v28.ch3.sourceforge.com: domain of llnl.gov designates 128.115.41.82 as permitted sender) client-ip=128.115.41.82; envelope-from=garlick@llnl.gov; helo=nspiron-2.llnl.gov; Received: from nspiron-2.llnl.gov ([128.115.41.82]) by sfi-mx-2.v28.ch3.sourceforge.com with esmtp (Exim 4.69) id 1NwiJg-0006oy-U1 for v9fs-developer@lists.sourceforge.net; Tue, 30 Mar 2010 20:45:41 +0000 X-Attachments: None Received: from eris.llnl.gov ([134.9.2.84]) by nspiron-2.llnl.gov with ESMTP; 30 Mar 2010 13:45:35 -0700 Received: from localhost (mrhankey [192.168.1.135]) by eris.llnl.gov (Postfix) with ESMTP id 23FCD7C4A5; Tue, 30 Mar 2010 13:45:35 -0700 (PDT) Date: Tue, 30 Mar 2010 13:45:35 -0700 From: Jim Garlick To: Eric Van Hensbergen Message-ID: <20100330204534.GA12061@llnl.gov> References: <20100330094209.GI5069@bicker> Mime-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record -0.0 AWL AWL: From: address is in the auto white-list X-Headers-End: 1NwiJg-0006oy-U1 Cc: V9FS Developers Subject: Re: [V9fs-developer] Fwd: [patch] 9p: saving negative to unsigned char X-BeenThere: v9fs-developer@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: v9fs-developer-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 30 Mar 2010 20:46:27 +0000 (UTC) diff --git a/net/9p/client.c b/net/9p/client.c index e3e5bf4..4d66e97 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -84,8 +84,9 @@ static unsigned char get_protocol_version(const substring_t *n ame) version = p9_proto_2000L; P9_DPRINTK(P9_DEBUG_9P, "Protocol version: 9P2000.L\n"); } else { - P9_DPRINTK(P9_DEBUG_ERROR, "Unknown protocol version %s. ", - name->from); + P9_DPRINTK(P9_DEBUG_ERROR, "Unknown protocol version %.*s\n", + name->to-name->from, name->from); + } return version;