Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755207AbbFEPtH (ORCPT ); Fri, 5 Jun 2015 11:49:07 -0400 Received: from smtprelay0017.hostedemail.com ([216.40.44.17]:35762 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754153AbbFEPtE (ORCPT ); Fri, 5 Jun 2015 11:49:04 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:41:355:379:541:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2194:2198:2199:2200:2393:2559:2562:2693:2731:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4225:4321:5007:6261:7903:8603:9036:10004:10400:10848:11026:11232:11658:11914:12109:12114:12296:12438:12517:12519:12740:13069:13138:13231:13255:13311:13357:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: rail50_31b87839a2045 X-Filterd-Recvd-Size: 3016 Message-ID: <1433519340.2658.51.camel@perches.com> Subject: Re: [Xen-devel] [PATCH v2 1/2] net/xen-netfront: Correct printf format in xennet_get_responses From: Joe Perches To: Julien Grall Cc: David Vrabel , ian.campbell@citrix.com, netdev@vger.kernel.org, stefano.stabellini@eu.citrix.com, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, Boris Ostrovsky Date: Fri, 05 Jun 2015 08:49:00 -0700 In-Reply-To: <55719752.2070909@citrix.com> References: <1433350510-12846-1-git-send-email-julien.grall@citrix.com> <1433350510-12846-2-git-send-email-julien.grall@citrix.com> <1433351196.4861.131.camel@perches.com> <5570484C.8040201@citrix.com> <557048B1.9070805@citrix.com> <55704A02.9010001@citrix.com> <1433435132.4861.184.camel@perches.com> <55719752.2070909@citrix.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1945 Lines: 46 On Fri, 2015-06-05 at 13:34 +0100, Julien Grall wrote: > On 04/06/15 17:25, Joe Perches wrote: > > On Thu, 2015-06-04 at 13:52 +0100, Julien Grall wrote: > >> On 04/06/15 13:46, David Vrabel wrote: > >>> On 04/06/15 13:45, Julien Grall wrote: > >>>> On 03/06/15 18:06, Joe Perches wrote: > >>>>> On Wed, 2015-06-03 at 17:55 +0100, Julien Grall wrote: > >>>>>> rx->status is an int16_t, print it using %d rather than %u in order to > >>>>>> have a meaningful value when the field is negative. > >>>>> [] > >>>>>> diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c > >>>>> [] > >>>>>> @@ -733,7 +733,7 @@ static int xennet_get_responses(struct netfront_queue *queue, > >>>>>> if (unlikely(rx->status < 0 || > >>>>>> rx->offset + rx->status > PAGE_SIZE)) { > >>>>>> if (net_ratelimit()) > >>>>>> - dev_warn(dev, "rx->offset: %x, size: %u\n", > >>>>>> + dev_warn(dev, "rx->offset: %x, size: %d\n", > >>>>> > >>>>> If you're going to do this, perhaps it'd be sensible to > >>>>> also change the %x to %#x or 0x%x so that people don't > >>>>> mistake offset without an [a-f] for decimal. > >>>> > >>>> Good idea. I will resend a version of this series. > >>>> > >>>> David, can I keep you Reviewed-by for this change?# > >>> > >>> Can you make the offset %d instead? > > > > If you do, please change similar uses in > > drivers/net/xen-netback/ in the same patch. > > The format is not really consistent accross the 2 drivers and even > within the same driver (see pending_idx which is some times print with > %x and %d). > > Anyway, ss it's a different drivers and maintainers I will prefer to > send a separate patch for this. It's all xen to me, but thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/