Re: [PATCH V2] iommu: Use %pa and %zx instead of casting

2013-06-24 Thread Joerg Roedel
On Sun, Jun 23, 2013 at 12:29:04PM -0700, Joe Perches wrote: > printk supports using %pa for phys_addr_t and > %zx for size_t so use those instead of %lx and > casts to unsigned long. > > Other miscellaneous changes around this: > > Always use 0x%zx for size instead of one use of decimal. > Coale

Re: [PATCH V2] iommu: Use %pa and %zx instead of casting

2013-06-23 Thread Geert Uytterhoeven
On Sun, Jun 23, 2013 at 9:29 PM, Joe Perches wrote: >> While we're at it, paddr is phys_addr_t (which can be 32-bit or 64-bit), >> so it should be cast to unsigned long long (instead of unsigned long), >> and printed using %llx (instead of %lx). > > Sounds good to me, except using %pa instead is b