On Thu, 2019-02-28 at 11:36 +0000, 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/chunk.c
[]
> @@ -192,7 +192,7 @@ struct sctp_datamsg *sctp_datamsg_from_user(struct 
> sctp_association *asoc,
>       if (unlikely(!max_data)) {
>               max_data = sctp_min_frag_point(sctp_sk(asoc->base.sk),
>                                              sctp_datachk_len(&asoc->stream));
> -             pr_warn_ratelimited("%s: asoc:%p frag_point is zero, forcing 
> max_data to default minimum (%Zu)",
> +             pr_warn_ratelimited("%s: asoc:%p frag_point is zero, forcing 
> max_data to default minimum (%zu)",
>                                   __func__, asoc, max_data);

trivia: the format is also missing a terminating '\n'

Reply via email to