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

Pavel Emelyanov xemul at parallels.com
Tue Apr 24 07:21:26 EDT 2012


On 04/24/2012 03:10 PM, 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

Applied


More information about the CRIU mailing list