[CRIU] Re: [PATCH] Replace printf format "0x%x" with "%#x"

Kinsbursky Stanislav skinsbursky at openvz.org
Tue Apr 24 07:28:47 EDT 2012


On 24.04.2012 15:10, Konstantin Khlebnikov wrote:
> printf() has standard flag for adding "0x" prefix before hexadecimal integer.
>
> MOD='[-+]\?[0-9]*.\?[0-9]*[lL]*'
> git grep -l "0x%#${MOD}x" | xargs -n1 sed -e "s/0x%#\(${MOD}\)x/%#\1x/g" -i

Please, reply with correct command.

-- 
Best regards,
Stanislav Kinsbursky



More information about the CRIU mailing list