From 63b0d57debe80892e4f327d36e74d523c8d8d683 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 7 Oct 2011 13:37:40 +0300 Subject: [PATCH] fill_db_caller_info: calculate function_id correctly It was incrementing the function_id every time because it didn't store the previous values correctly. Doh. Signed-off-by: Dan Carpenter --- smatch_scripts/db/fill_db_caller_info.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/smatch_scripts/db/fill_db_caller_info.pl b/smatch_scripts/db/fill_db_caller_info.pl index 5220c746..64def83d 100755 --- a/smatch_scripts/db/fill_db_caller_info.pl +++ b/smatch_scripts/db/fill_db_caller_info.pl @@ -56,6 +56,9 @@ while () { $func =~ s/'//g; if ($prev_fn ne $func || $prev_line ne $line || $param < $prev_param) { + $prev_fn = $func; + $prev_line = $line; + $prev_param = $param; $func_id++; } -- 2.11.4.GIT