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

Cyrill Gorcunov gorcunov at openvz.org
Tue Apr 24 07:21:38 EDT 2012


On Tue, Apr 24, 2012 at 03:10:57PM +0400, 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
> 
> Signed-off-by: Konstantin Khlebnikov <khlebnikov at openvz.org>
> Cc: Kinsbursky Stanislav <skinsbursky at openvz.org>
> Cc: Cyrill Gorcunov <gorcunov at openvz.org>
> Cc: Pavel Emelyanov <xemul at parallels.com>

Thanks Konstantin!

	Cyrill


More information about the CRIU mailing list