projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bf819a
)
vsnprintf: Drop unused const char fmt * in va_format()
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Fri, 21 Mar 2025 14:40:51 +0000
(16:40 +0200)
committer
Petr Mladek
<pmladek@suse.com>
Fri, 28 Mar 2025 12:37:11 +0000
(13:37 +0100)
va_format() doesn't use original formatting string, drop that
argument as it's done elsewhere in similar cases.
Suggested-by: Rasmus Villemoes <ravi@prevas.dk>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Link:
https://lore.kernel.org/r/20250321144822.324050-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
lib/vsprintf.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/vsprintf.c
b/lib/vsprintf.c
index 734bd70c8b9b3d1db7aed830a906242d4ff488e5..4a04828916e2d001989a2838f0fee1b48c91bdbe 100644
(file)
--- a/
lib/vsprintf.c
+++ b/
lib/vsprintf.c
@@
-1700,7
+1700,7
@@
char *escaped_string(char *buf, char *end, u8 *addr, struct printf_spec spec,
}
static char *va_format(char *buf, char *end, struct va_format *va_fmt,
- struct printf_spec spec
, const char *fmt
)
+ struct printf_spec spec)
{
va_list va;
@@
-2469,7
+2469,7
@@
char *pointer(const char *fmt, char *buf, char *end, void *ptr,
case 'U':
return uuid_string(buf, end, ptr, spec, fmt);
case 'V':
- return va_format(buf, end, ptr, spec
, fmt
);
+ return va_format(buf, end, ptr, spec);
case 'K':
return restricted_pointer(buf, end, ptr, spec);
case 'N':