Re: [PATCH] sctp: chunk.c: correct format string for size_t in printk

2019-03-01 Thread Joe Perches
On Thu, 2019-02-28 at 11:36 +, Matthias Maennich wrote: > 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): [] > diff --git a/net/sctp/chunk.c b/net/sctp/ch

Re: [PATCH] sctp: chunk.c: correct format string for size_t in printk

2019-02-28 Thread David Miller
From: Matthias Maennich Date: Thu, 28 Feb 2019 11:36:52 + > 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

Re: [PATCH] sctp: chunk.c: correct format string for size_t in printk

2019-02-28 Thread Marcelo Ricardo Leitner
On Thu, Feb 28, 2019 at 11:36:52AM +, Matthias Maennich wrote: > 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: da

[PATCH] sctp: chunk.c: correct format string for size_t in printk

2019-02-28 Thread Matthias Maennich
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]