Commit 45042732 authored by Vladimir Sementsov-Ogievskiy's avatar Vladimir Sementsov-Ogievskiy Committed by Stefan Hajnoczi

checkpatch: fix incompatibility with old perl

Do not use '/r' modifier which was introduced in perl 5.14.
Signed-off-by: 's avatarVladimir Sementsov-Ogievskiy <>
Reviewed-by: 's avatarDaniel P. Berrange <>
Fixes: 3e5875afc0f ("checkpatch: check trace-events code style")
Tested-by: 's avatarAlex Williamson <>
Signed-off-by: 's avatarStefan Hajnoczi <>
parent 5456c6a4
......@@ -1432,7 +1432,8 @@ sub process {
qr/%[-+ *.0-9]*([hljztL]|ll|hh)?(x|X|"\s*PRI[xX][^"]*"?)/;
# don't consider groups splitted by [.:/ ], like 2A.20:12ab
my $tmpline = $rawline =~ s/($hex[.:\/ ])+$hex//gr;
my $tmpline = $rawline;
$tmpline =~ s/($hex[.:\/ ])+$hex//g;
if ($tmpline =~ /(?<!0x)$hex/) {
ERROR("Hex numbers must be prefixed with '0x'\n" .
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment