From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emil Goode Date: Sat, 01 Jun 2013 17:11:25 +0000 Subject: Re: [PATCH] usb: musb: Fix format specifier warning Message-Id: <20130601171125.GA8824@debian> List-Id: References: <1370031778-25965-1-git-send-email-emilgoode@gmail.com> <51A926A4.5010800@infradead.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Andy Shevchenko Cc: Randy Dunlap , balbi@ti.com, Greg Kroah-Hartman , USB , "linux-kernel@vger.kernel.org" , kernel-janitors@vger.kernel.org Hello, Thank's for your pointers. I will send a patch that applies on top of Felipe's patch. Best regards, Emil Goode On Sat, Jun 01, 2013 at 04:15:03PM +0300, Andy Shevchenko wrote: > On Sat, Jun 1, 2013 at 1:39 AM, Randy Dunlap wrote: > > On 05/31/13 15:34, Andy Shevchenko wrote: > >> On Fri, May 31, 2013 at 11:22 PM, Emil Goode wrote: > >>> This patch fixes a format specifier warning. dma_addr_t can be either > >>> u32 or u64 so we should cast to the largest type and change the format > >>> specifier to %llx. > >> > >> dma_addr_t is derived from phys_addr_t, thus you may use %pa specifier > >> which is available from v3.8(?). > >> > >> Something like this: > >> dma_addr_t src_addr; > >> dev_dbg(dev, "DMA addr: %pa\n", src_addr); > > > > Isn't that: > > > > deb_dbg(dev, "DMA addr: %pa\n", &src_addr); > > It's. > You are right. > > -- > With Best Regards, > Andy Shevchenko