diff options
author | Matthias Maennich <maennich@google.com> | 2019-02-28 14:36:52 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-28 21:33:40 +0300 |
commit | ac5105052dc8be5cef34d79e1f4186d39b2f3ca3 (patch) | |
tree | 40fc7c9d51482b253b286298f4d4a04c586560ff /drivers/net/wan | |
parent | 5845f706388a4cde0f6b80f9e5d33527e942b7d9 (diff) | |
download | linux-ac5105052dc8be5cef34d79e1f4186d39b2f3ca3.tar.xz |
sctp: chunk.c: correct format string for size_t in printk
According to Documentation/core-api/printk-formats.rst, size_t should be
printed with %zu, rather than %Zu.
In addition, using %Zu triggers a warning on clang (-Wformat-extra-args):
net/sctp/chunk.c:196:25: warning: data argument not used by format string [-Wformat-extra-args]
__func__, asoc, max_data);
~~~~~~~~~~~~~~~~^~~~~~~~~
./include/linux/printk.h:440:49: note: expanded from macro 'pr_warn_ratelimited'
printk_ratelimited(KERN_WARNING pr_fmt(fmt), ##__VA_ARGS__)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
./include/linux/printk.h:424:17: note: expanded from macro 'printk_ratelimited'
printk(fmt, ##__VA_ARGS__); \
~~~ ^
Fixes: 5b5e0928f742 ("lib/vsprintf.c: remove %Z support")
Link: https://github.com/ClangBuiltLinux/linux/issues/378
Signed-off-by: Matthias Maennich <maennich@google.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
0 files changed, 0 insertions, 0 deletions