summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaja Das <rajadas2@in.ibm.com>2018-10-17 00:30:22 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2018-10-17 21:49:16 -0500
commit470b106f89cc2cd8252051974c17650e9f9cf8b0 (patch)
treeaa91c043ee330b6fe2d366bd80f0f4ce3ddf3ad6
parentf4b6cc7a87178379850decece2ac03bd16a8a530 (diff)
downloadtalos-sbe-470b106f89cc2cd8252051974c17650e9f9cf8b0.tar.gz
talos-sbe-470b106f89cc2cd8252051974c17650e9f9cf8b0.zip
Updated tracehash.pl file to skip parsing of empty line from hash file
To get rid of these prints - Use of uninitialized value $l_str in concatenation Change-Id: I475c2471e9fde60c7413734412ada0243c1f570d Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/67590 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
-rwxr-xr-xsrc/tools/trace/tracehash.pl9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tools/trace/tracehash.pl b/src/tools/trace/tracehash.pl
index 2b0480af..7a97de60 100755
--- a/src/tools/trace/tracehash.pl
+++ b/src/tools/trace/tracehash.pl
@@ -6,7 +6,7 @@
#
# OpenPOWER sbe Project
#
-# Contributors Listed Below - COPYRIGHT 2015,2016
+# Contributors Listed Below - COPYRIGHT 2015,2018
# [+] International Business Machines Corp.
#
#
@@ -649,6 +649,11 @@ sub assimilate_file($) {
while (defined $line) {
chop $line; # remove EOL
+ if(! $line)
+ {
+ $line = <FH>;
+ next;
+ }
if($version eq "1")
{
($l_hash, $l_file ,$l_str) = split(/\|\|/, $line);
@@ -672,7 +677,7 @@ sub assimilate_file($) {
}
if ($hashstr1 ne $hashstr2)
{
- print "*** ERROR: HASH Collision! (a_f)\n",
+ print "*** assimilate_file: ERROR: HASH Collision! (a_f)\n",
" Two different strings have the same hash value ($l_hash)\n",
" String 1: $hash_strings_array{$l_hash}\n",
" String 2: $newstring\n";
OpenPOWER on IntegriCloud