From ce76f3a3eeaa1390735cd65aed91f8e04564be94 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Tue, 29 Dec 2020 11:13:12 -0800 Subject: [PATCH] debug cleanup --- include/sta/Debug.hh | 12 ++++++------ util/Debug.cc | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/sta/Debug.hh b/include/sta/Debug.hh index 2521c01a..1391acd4 100644 --- a/include/sta/Debug.hh +++ b/include/sta/Debug.hh @@ -37,21 +37,21 @@ typedef Map DebugMap; class Debug { public: - explicit Debug(Report *&report); + explicit Debug(Report *report); ~Debug(); - bool check(const char *what, - int level) const; int level(const char *what); void setLevel(const char *what, int level); + bool check(const char *what, + int level) const; int statsLevel() const { return stats_level_; } void reportLine(const char *what, - const char *fmt, - ...) const + const char *fmt, + ...) const __attribute__((format (printf, 3, 4))); protected: - Report *&report_; + Report *report_; DebugMap *debug_map_; int stats_level_; diff --git a/util/Debug.cc b/util/Debug.cc index 80b6740e..554b494c 100644 --- a/util/Debug.cc +++ b/util/Debug.cc @@ -22,7 +22,7 @@ namespace sta { bool debug_on = false; -Debug::Debug(Report *&report) : +Debug::Debug(Report *report) : report_(report), debug_map_(nullptr), stats_level_(0)