diff options
author | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-12-03 13:52:04 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2024-02-15 21:04:46 +0100 |
commit | 6c97900a1030950818b31e5a106a131fd94d59c3 (patch) | |
tree | 93e4edc08b12a02520b14f7686f6840a3435ae55 /scripts | |
parent | f65e5a325d00c8f16e9ebc8d93568b2e07e1a99f (diff) |
scripts/code_cov_parse_info: warn if branch block is not zero
The lcov's info format has a field to be used for report branch
block. This is unused on json format (newer gcc), being always
zero. JSON doesn't contain it, so the parser doesn't support
it to be non-zero anymore. Print a warning if this happens.
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/code_cov_parse_info | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/code_cov_parse_info b/scripts/code_cov_parse_info index 50d10a30d..ea4f64b34 100755 --- a/scripts/code_cov_parse_info +++ b/scripts/code_cov_parse_info @@ -519,6 +519,10 @@ sub read_info($) my $branch = $3; my $taken = $4; + if ($block != 0) { + print "Warning: unexpected block $block at line $.\n"; + } + my $where = "$ln,$block,$branch"; $taken = 0 if ($taken eq '-'); |