debug cleanup

This commit is contained in:
James Cherry
2020-12-29 11:13:12 -08:00
parent 9b1dc880f5
commit ce76f3a3ee
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -37,21 +37,21 @@ typedef Map<const char *, int, CharPtrLess> 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_;