Skip to content

Commit

Permalink
Added newline termination after putting in build info into Hash
Browse files Browse the repository at this point in the history
At the top of the hash generated file, the file/build info is
getting appended with the first hash line. Terminated the build
info with a newline termination.

Change-Id: Id002f2591e166f73703cb5a7121da1a7ac33a365
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/66905
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>
  • Loading branch information
Raja Das authored and sgupta2m committed Oct 3, 2018
1 parent 0297fe8 commit a273362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/trace/ppetracepp.C
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER sbe Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2015,2016 */
/* Contributors Listed Below - COPYRIGHT 2015,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -921,7 +921,7 @@ if (!hashtab.empty())
time_t tt = time(NULL);
sprintf(buf, "%s", asctime(localtime(&tt)));
buf[strlen(buf)-1] = '\0'; // chop off extra newline
fprintf(TRC, "#FSP_TRACE_v2|||%s|||BUILD:%.120s", buf, pwd.c_str());
fprintf(TRC, "#FSP_TRACE_v2|||%s|||BUILD:%.120s\n", buf, pwd.c_str());

string srch_str = "||";
srch_str += source;
Expand Down

0 comments on commit a273362

Please sign in to comment.