[CRIU] [PATCH 5/9] print_hex_l: specify the size of the argument explicitly

Pavel Emelyanov xemul at parallels.com
Wed Jan 16 12:56:34 EST 2013


On 01/16/2013 09:18 PM, Alexander Kartashov wrote:
> On 01/16/2013 07:33 PM, Pavel Emelyanov wrote:
>> This breaks log-simple's formats compatibility.
> Is it OK to retain the prototype but cast the argument to uint64_t?

No. Use

#if BITS_PER_LONG==64

and declare BITS_PER_LONG somewhere in the header as

#define BITS_PER_LONG (sizeof(unsigned long) * 8)


More information about the CRIU mailing list