Message ID | 20200902173105.38293-1-andriy.shevchenko@linux.intel.com |
---|---|
State | New |
Headers | show |
Series | [v2,1/3] swiotlb: Use %pa to print phys_addr_t variables | expand |
On Wed, Sep 2, 2020 at 2:31 PM Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote: > > There is an extension to a %p to print phys_addr_t type of variables. > Use it here. > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > --- > v2: dropped bytes replacement (Fabio) Reviewed-by: Fabio Estevam <festevam@gmail.com>
On Wed, Sep 02, 2020 at 11:02:46PM -0300, Fabio Estevam wrote: > On Wed, Sep 2, 2020 at 2:31 PM Andy Shevchenko > <andriy.shevchenko@linux.intel.com> wrote: > > > > There is an extension to a %p to print phys_addr_t type of variables. > > Use it here. > > > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > > --- > > v2: dropped bytes replacement (Fabio) > > Reviewed-by: Fabio Estevam <festevam@gmail.com> Thanks! Guys, can this series be applied?
On Wed, Sep 09, 2020 at 06:59:13PM +0300, Andy Shevchenko wrote: > On Wed, Sep 02, 2020 at 11:02:46PM -0300, Fabio Estevam wrote: > > On Wed, Sep 2, 2020 at 2:31 PM Andy Shevchenko > > <andriy.shevchenko@linux.intel.com> wrote: > > > > > > There is an extension to a %p to print phys_addr_t type of variables. > > > Use it here. > > > > > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > > > --- > > > v2: dropped bytes replacement (Fabio) > > > > Reviewed-by: Fabio Estevam <festevam@gmail.com> > > Thanks! > > Guys, can this series be applied? Sure. > > -- > With Best Regards, > Andy Shevchenko > >
diff --git a/kernel/dma/swiotlb.c b/kernel/dma/swiotlb.c index c19379fabd20..6499bda8f0b8 100644 --- a/kernel/dma/swiotlb.c +++ b/kernel/dma/swiotlb.c @@ -172,9 +172,7 @@ void swiotlb_print_info(void) return; } - pr_info("mapped [mem %#010llx-%#010llx] (%luMB)\n", - (unsigned long long)io_tlb_start, - (unsigned long long)io_tlb_end, + pr_info("mapped [mem %pa-%pa] (%luMB)\n", &io_tlb_start, &io_tlb_end, bytes >> 20); }
There is an extension to a %p to print phys_addr_t type of variables. Use it here. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- v2: dropped bytes replacement (Fabio) kernel/dma/swiotlb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)