aboutsummaryrefslogtreecommitdiffstats
path: root/lib/vsprintf.c
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2019-10-03 15:32:15 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-10-11 11:26:55 +0200
commit1586c5ae2f9310235b5e70abe712c73fc32eb98f (patch)
treed8c5b98dfc3801f33fbb7bdc043b7814df1a16e7 /lib/vsprintf.c
parentlib/vsprintf: Remove support for %pF and %pf in favour of %pS and %ps (diff)
downloadlinux-dev-1586c5ae2f9310235b5e70abe712c73fc32eb98f.tar.xz
linux-dev-1586c5ae2f9310235b5e70abe712c73fc32eb98f.zip
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 <sakari.ailus@linux.intel.com> Suggested-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'lib/vsprintf.c')
-rw-r--r--lib/vsprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index 7eb6417b3aae..ac9f3207a8d6 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]