changeset 234:07b92bcfe98d

Bug 3404: Fix to show a path to debuginfo Reviewed-by: yasuenag GitHub: https://github.com/HeapStats/heapstats/pull/101
author KUBOTA Yuji <kubota.yuji@lab.ntt.co.jp>
date Wed, 14 Jun 2017 00:09:19 +0900
parents 1ac3803a35d1
children 4a05a154b09b
files ChangeLog agent/src/heapstats-engines/symbolFinder.cpp
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 <kubota.yuji@lab.ntt.co.jp>
+
+	* Bug 3404: Fix to show a path to debuginfo
+
 2017-06-14 Yasumasa Suenaga <yasuenag@gmail.com>
 
 	* Bug 3403: HeapStats Agent might crash if application exits with System.exit()
--- 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);
   }