Thread (17 messages) 17 messages, 3 authors, 2021-11-02

Re: [PATCH] vsprintf: Update %pGp documentation about that it prints hex value

From: Yafang Shao <hidden>
Date: 2021-10-29 02:19:08

On Fri, Oct 29, 2021 at 10:15 AM Yafang Shao [off-list ref] wrote:
On Wed, Oct 27, 2021 at 8:48 PM Petr Mladek [off-list ref] wrote:
quoted
The commit 23efd0804c0a869dfb1e7 ("vsprintf: Make %pGp print
the hex value") changed the behavior of %pGp printk format.
Update the documentation accordingly.

Fixes: 23efd0804c0a869dfb1e7 ("vsprintf: Make %pGp print the hex value")
Signed-off-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Yafang Shao <redacted>
With below minor change:
-       %pGp
0x17ffffc0002036(referenced|uptodate|lru|active|private|node=0|zone=2|lastcpupid=0x1fffff
+       %pGp
0x17ffffc0002036(referenced|uptodate|lru|active|private|node=0|zone=2|lastcpupid=0x1fffff)

The ')' is lost.

I just checked the data before :(

quoted
---
The commit ID 23efd0804c0a869dfb1e7 is taken from printk/linux.git,
branch for-5.16-vsprintf-pgp. It should get preserved when the branch
is merged into Linus tree.

 Documentation/core-api/printk-formats.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Documentation/core-api/printk-formats.rst b/Documentation/core-api/printk-formats.rst
index e08bbe9b0cbf..4eff98e06b4b 100644
--- a/Documentation/core-api/printk-formats.rst
+++ b/Documentation/core-api/printk-formats.rst
@@ -580,7 +580,7 @@ Flags bitfields such as page flags, gfp_flags

 ::

-       %pGp    referenced|uptodate|lru|active|private|node=0|zone=2|lastcpupid=0x1fffff
+       %pGp    0x17ffffc0002036(referenced|uptodate|lru|active|private|node=0|zone=2|lastcpupid=0x1fffff
        %pGg    GFP_USER|GFP_DMA32|GFP_NOWARN
        %pGv    read|exec|mayread|maywrite|mayexec|denywrite

--
2.26.2


--
Thanks
Yafang


-- 
Thanks
Yafang
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help