This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fixed warning-to-error on mismatched printf parameter in control.c


On Fri, 21 Sep 2007 09:47:03 -0400 Martin Hunt wrote:

> Thanks for the patch.  I have checked it in.

There is a C-language (library) format specifier for size_t.
It's %z, as in %zd or %zu, so the
		count:%d len:%d
should be
		count:%zd len:%d


Quoting the C-99 spec:

z  Specifies that a following d, i, o, u, x, or X conversion specifier
   applies to a size_t or the corresponding signed integer type argument;
   or that a following n conversion specifier applies to a pointer to a
   signed integer type corresponding to size_t argument.

---
~Randy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]