RE: [RFC] vsprintf: compile error on %09pK

From: David Laight
Date: Mon Apr 03 2023 - 12:05:06 EST


From: Jaewon Kim
> Sent: 03 April 2023 15:40
...
> I wanted to print phys_addr_t type value only when kptr_restrict sysctl is
> allowed. So I thought I could use %pK for that purpose. And the physical
> address is not that long. I wanted to make that length short like 9 hex.

Isn't that is the wrong format for physical addresses anyway?
They can be larger than virtual ones (eg x86 with PAE).

David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)