Re: [PATCH 12/12] pidfd_open.2: Cast 'short' to 'unsigned int' when printing with "%x"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/13/20 7:55 AM, Michael Kerrisk (man-pages) wrote:
>> -    printf("Events (%#x): POLLIN is %sset\en", pollfd.revents,
>> +    printf("Events (%#x): POLLIN is %sset\en",
>> +            (unsigned int) pollfd.revents,
>>              (pollfd.revents & POLLIN) ? "" : "not ");
> 
> Does something similar not also apply as for patch 11, since
> the short will be promoted to an int in a variadic argument
> list?
> 

Good catch :) Cancel this patch.

Thanks,

Alex



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux