swiotlb: Use %pa to print phys_addr_t variables
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 2 Sep 2020 17:31:03 +0000 (10:31 -0700)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 10 Sep 2020 13:41:25 +0000 (09:41 -0400)
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>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
kernel/dma/swiotlb.c

index c19379f..6499bda 100644 (file)
@@ -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);
 }