printk: synchronize %p formatting documentation
[firefly-linux-kernel-4.4.55.git] / Documentation / printk-formats.txt
index 2216eb187c213b4c0c5140a760f9df3098150e41..9b8d7f746b1a6ad3cdfaf2d2c93675ab69f4f12c 100644 (file)
@@ -119,6 +119,7 @@ Raw buffer as an escaped string:
        If field width is omitted the 1 byte only will be escaped.
 
 Raw buffer as a hex string:
+
        %*ph    00 01 02  ...  3f
        %*phC   00:01:02: ... :3f
        %*phD   00-01-02- ... -3f
@@ -234,6 +235,7 @@ UUID/GUID addresses:
        Passed by reference.
 
 dentry names:
+
        %pd{,2,3,4}
        %pD{,2,3,4}
 
@@ -256,6 +258,8 @@ struct va_format:
                va_list *va;
        };
 
+       Implements a "recursive vsnprintf".
+
        Do not use this feature without some mechanism to verify the
        correctness of the format string and va_list arguments.
 
@@ -284,6 +288,31 @@ bitmap and its derivatives such as cpumask and nodemask:
 
        Passed by reference.
 
+Network device features:
+
+       %pNF    0x000000000000c000
+
+       For printing netdev_features_t.
+
+       Passed by reference.
+
+Command from struct task_struct
+
+       %pT     ls
+
+       For printing executable name excluding path from struct
+       task_struct.
+
+       Passed by reference.
+
+Ignored argument:
+
+       %n      %n
+
+       The argument passed will be ignored.  In other words, literal "%n" will
+       be in the output and the argument will be considered for next format
+       specifier.
+
 Thank you for your cooperation and attention.