Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1453473

Re: [PATCH 1/1] net: caif: use correct format specifier

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH 1/1] net: caif: use correct format specifier
Date 2016-08-01 23:00 +0200
Message-ID <s1stz-32g-17@gated-at.bofh.it> (permalink)
References <s0Tm9-5w0-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Heinrich Schuchardt <xypron.glpk@gmx.de>
Date: Sun, 31 Jul 2016 09:19:50 +0200

> %u is the wrong format specifier for int.
> size_t cannot be converted to int without possible
> loss of information.
> 
> So leave the result as size_t and use %zu as format specifier.
> 
> cf. Documentation/printk-formats.txt
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Applied.

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 1/1] net: caif: use correct format specifier Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-07-31 09:30 +0200
  Re: [PATCH 1/1] net: caif: use correct format specifier David Miller <davem@davemloft.net> - 2016-08-01 23:00 +0200

csiph-web