# HG changeset patch # User KUBOTA Yuji # Date 1497366559 -32400 # Node ID 07b92bcfe98d8f37b4aa88bd97af00994e841737 # Parent 1ac3803a35d1fbe3ac55c5c47cfafe750d12e6b7 Bug 3404: Fix to show a path to debuginfo Reviewed-by: yasuenag GitHub: https://github.com/HeapStats/heapstats/pull/101 diff -r 1ac3803a35d1 -r 07b92bcfe98d ChangeLog --- a/ChangeLog Wed Jun 14 16:30:31 2017 +0900 +++ b/ChangeLog Wed Jun 14 00:09:19 2017 +0900 @@ -1,3 +1,7 @@ +2017-06-14 KUBOTA Yuji + + * Bug 3404: Fix to show a path to debuginfo + 2017-06-14 Yasumasa Suenaga * Bug 3403: HeapStats Agent might crash if application exits with System.exit() diff -r 1ac3803a35d1 -r 07b92bcfe98d agent/src/heapstats-engines/symbolFinder.cpp --- a/agent/src/heapstats-engines/symbolFinder.cpp Wed Jun 14 16:30:31 2017 +0900 +++ b/agent/src/heapstats-engines/symbolFinder.cpp Wed Jun 14 00:09:19 2017 +0900 @@ -1,7 +1,7 @@ /*! * \file symbolFinder.cpp * \brief This file is used by search symbol in library. - * Copyright (C) 2011-2015 Nippon Telegraph and Telephone Corporation + * Copyright (C) 2011-2017 Nippon Telegraph and Telephone Corporation * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -210,14 +210,14 @@ /* Load library's debuginfo with bfd record. */ struct stat st = {0}; if (unlikely(stat(&(dbgInfoPath[0]), &st) != 0)) { - logger->printWarnMsg("Cannot read debuginfo from ", dbgInfoPath); + logger->printWarnMsg("Cannot read debuginfo from %s", dbgInfoPath); } else { - logger->printDebugMsg("Try to read debuginfo from ", dbgInfoPath); + logger->printDebugMsg("Try to read debuginfo from %s", dbgInfoPath); loadLibraryInfo(dbgInfoPath, &debugBfdInfo); } } else { - logger->printDebugMsg("The same version of debuginfo not found: ", + logger->printDebugMsg("The same version of debuginfo not found: %s", libBfdInfo.bfdInfo->filename); }