Re: [LTP] [PATCH 18/21] network/lib6/asapi_06: pcmsg->cmsg_len is of type size_t

Mike Frysinger
2012-01-03T20:36:27Z

[-- Attachment #1.1: Type: Text/Plain, Size: 596 bytes --]

On Tuesday 03 January 2012 14:33:05 Garrett Cooper wrote:
> On Tue, Jan 3, 2012 at 5:23 AM, Markos Chandras
>
> <Markos.Chandras@imgtec.com> wrote:
> > Hi, please review the attached patch
>
> This is ok. While the stance here has been to follow the PRI*
> style format string qualifiers, this works and is pseudo standard
> across BSD, Linux, and probably a few other printf(3) implementations.

the PRI* stuff is for explicitly sized types (e.g. 8bit/16bit/32bit/64bit). it
is not for [s]size_t types ... that's what the "z" length field of printf is
designed for.
-mike

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 355 bytes --]

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]