[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140403154409.GD18079@strange.amr.corp.intel.com>
Date: Thu, 3 Apr 2014 16:44:09 +0100
From: Damien Lespiau <damien.lespiau@...el.com>
To: Randy Dunlap <rdunlap@...radead.org>,
Jani Nikula <jani.nikula@...el.com>,
Stephen Rothwell <sfr@...b.auug.org.au>,
intel-gfx@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
dri-devel@...ts.freedesktop.org, linux-next@...r.kernel.org
Subject: Re: [Intel-gfx] [PATCH] drm/i915: fix command parser debug print
format mismatches
On Thu, Apr 03, 2014 at 11:32:30AM +0200, Daniel Vetter wrote:
> On Wed, Apr 02, 2014 at 08:26:23AM -0700, Randy Dunlap wrote:
> > On 04/02/2014 01:24 AM, Jani Nikula wrote:
> > > Drop the cast from the pointer diff to fix:
> > >
> > > drivers/gpu/drm/i915/i915_cmd_parser.c:405:4: warning: format '%td' expects
> > > argument of type 'ptrdiff_t', but argument 5 has type 'long unsigned int'
> > > [-Wformat]
> > >
> > > While at it, use %u for u32.
> > >
> > > Reported-by: Randy Dunlap <rdunlap@...radead.org>
> > > Signed-off-by: Jani Nikula <jani.nikula@...el.com>
> > >
> > > ---
> > >
> > > Randy, try as I might, I wasn't able to coerce gcc to spit out that
> > > warning. Please enlighten me! (Does this fix the warn?)
> >
> > Yes, it does. Thanks.
> >
> > Acked-by: Randy Dunlap <rdunlap@...radead.org>
>
> Maybe I'm blind, but I think the recent refactoring patch fixed this. Can
> someone please double-check? I always get confused with printf formats ;-)
I fixed it a couple of weeks back:
http://lists.freedesktop.org/archives/intel-gfx/2014-March/041886.html
--
Damien
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists