[CRIU] [PATCH] cr: introduced the macro P() to convert an integer to unsigned long
Cyrill Gorcunov
gorcunov at openvz.org
Thu Jan 17 05:07:51 EST 2013
On Thu, Jan 17, 2013 at 01:54:29PM +0400, Pavel Emelyanov wrote:
> >
> >
> > Moreover we can't use explicit size specifier because the size of size_t
> > is different on x86 an ARM.
>
> OK. So this is about "how to printf size_t-s" right? How is it solved
> in other projects, e.g. kernel?
The kernel uses own printk implementation which includes format parsing
and such, so it doesn't suffer from such problem as far as I know. see
vsnprintf.
Cyrill
More information about the CRIU
mailing list