From: Sakari Ailus Date: Thu, 3 Oct 2019 12:32:15 +0000 (+0300) Subject: lib/vsprintf: Add a note on re-using %pf or %pF X-Git-Tag: v5.10.7~3809^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1586c5ae2f9310235b5e70abe712c73fc32eb98f;p=platform%2Fkernel%2Flinux-rpi.git lib/vsprintf: Add a note on re-using %pf or %pF Add a note warning of re-use of obsolete %pf or %pF extensions. Signed-off-by: Sakari Ailus Suggested-by: Steven Rostedt (VMware) Reviewed-by: Petr Mladek Signed-off-by: Rafael J. Wysocki --- diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 7eb6417..ac9f320 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -2017,6 +2017,8 @@ static char *kobject_string(char *buf, char *end, void *ptr, * - 'S' For symbolic direct pointers (or function descriptors) with offset * - 's' For symbolic direct pointers (or function descriptors) without offset * - '[Ss]R' as above with __builtin_extract_return_addr() translation + * - '[Ff]' %pf and %pF were obsoleted and later removed in favor of + * %ps and %pS. Be careful when re-using these specifiers. * - 'B' For backtraced symbolic direct pointers with offset * - 'R' For decoded struct resource, e.g., [mem 0x0-0x1f 64bit pref] * - 'r' For raw struct resource, e.g., [mem 0x0-0x1f flags 0x201]