diff options
author | spashabk-in <shakeebbk@in.ibm.com> | 2018-02-15 01:25:38 -0600 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2018-02-15 07:43:23 -0500 |
commit | ffa97b5fd9ffcb9cb7e53b3bced6de796a9df8de (patch) | |
tree | c614562c2daf6180f1e25a07697f7cea84eaf6ce | |
parent | 0aae9a8e68abb55110bee2d7bd2fbe49a4a11e70 (diff) | |
download | talos-sbe-ffa97b5fd9ffcb9cb7e53b3bced6de796a9df8de.tar.gz talos-sbe-ffa97b5fd9ffcb9cb7e53b3bced6de796a9df8de.zip |
Fix missing sbe traces in errorlog
There is a size limitation for build field
in sf_magic_cookie_t in fsp-trace. Max size is 128 characters.
But with SBE release now moving to jenkins, the path of SBE
directory is long(172 chars). This fails the sbeStringFIle parsing.
Change-Id: I75cc3b4028bef592f45980773be03ea2e40e7b52
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/54098
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
-rwxr-xr-x | src/tools/trace/ppetracepp.C | 2 | ||||
-rwxr-xr-x | src/tools/trace/tracehash.pl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/trace/ppetracepp.C b/src/tools/trace/ppetracepp.C index f9c088d4..005d7b37 100755 --- a/src/tools/trace/ppetracepp.C +++ b/src/tools/trace/ppetracepp.C @@ -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:%s", buf, pwd.c_str()); + fprintf(TRC, "#FSP_TRACE_v2|||%s|||BUILD:%.120s", buf, pwd.c_str()); string srch_str = "||"; srch_str += source; diff --git a/src/tools/trace/tracehash.pl b/src/tools/trace/tracehash.pl index fb4c6a3a..2b0480af 100755 --- a/src/tools/trace/tracehash.pl +++ b/src/tools/trace/tracehash.pl @@ -186,7 +186,7 @@ determine_args(); if (defined $dir) { - $build = $build . $dir; # default to put at top of string file + $build = $build . substr($dir, 0, 120); # default to put at top of string file if($collect) { collect_files($dir); |