aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/printk-formats.txt
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2015-04-15 19:17:20 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-15 19:35:23 -0400
commit900cca2944254edd2d54dc181629314d3177a4af (patch)
tree3e1688e275f749d53d6b276ed00260243d254e0c /Documentation/printk-formats.txt
parente8a7ba5f5c8c0c94c0c7f1bcd53c0289560c7446 (diff)
lib/vsprintf: add %pC{,n,r} format specifiers for clocks
Add format specifiers for printing struct clk: - '%pC' or '%pCn': name (Common Clock Framework) or address (legacy clock framework) of the clock, - '%pCr': rate of the clock. [akpm@linux-foundation.org: omit code if !CONFIG_HAVE_CLK] Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Mike Turquette <mturquette@linaro.org> Cc: Stephen Boyd <sboyd@codeaurora.org> Cc: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/printk-formats.txt')
-rw-r--r--Documentation/printk-formats.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Documentation/printk-formats.txt b/Documentation/printk-formats.txt
index 56804e40cb18..cb6a596072bb 100644
--- a/Documentation/printk-formats.txt
+++ b/Documentation/printk-formats.txt
@@ -261,6 +261,18 @@ struct va_format:
261 261
262 Passed by reference. 262 Passed by reference.
263 263
264struct clk:
265
266 %pC pll1
267 %pCn pll1
268 %pCr 1560000000
269
270 For printing struct clk structures. '%pC' and '%pCn' print the name
271 (Common Clock Framework) or address (legacy clock framework) of the
272 structure; '%pCr' prints the current clock rate.
273
274 Passed by reference.
275
264 276
265Thank you for your cooperation and attention. 277Thank you for your cooperation and attention.
266 278