aboutsummaryrefslogtreecommitdiffstats
path: root/common/log.h
diff options
context:
space:
mode:
authorDavid Shah <dave@ds0.me>2018-11-26 19:14:38 +0000
committerDavid Shah <dave@ds0.me>2018-11-26 19:14:38 +0000
commit4a44bc569abde28b8c9d7440447295af683b92f4 (patch)
tree78b4c878958f1a1c6c81d5702d0cef5d8e1a0765 /common/log.h
parent0adc0d75297fa81034aa3f325cf2758314ca1336 (diff)
downloadnextpnr-4a44bc569abde28b8c9d7440447295af683b92f4.tar.gz
nextpnr-4a44bc569abde28b8c9d7440447295af683b92f4.tar.bz2
nextpnr-4a44bc569abde28b8c9d7440447295af683b92f4.zip
Print warning and error count at end of execution
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common/log.h')
-rw-r--r--common/log.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/log.h b/common/log.h
index f1727ac6..77adbb2f 100644
--- a/common/log.h
+++ b/common/log.h
@@ -26,8 +26,8 @@
#include <stdarg.h>
#include <stdio.h>
#include <string>
+#include <unordered_map>
#include <vector>
-
#include "nextpnr.h"
NEXTPNR_NAMESPACE_BEGIN
@@ -57,6 +57,7 @@ extern log_write_type log_write_function;
extern std::string log_last_error;
extern void (*log_error_atexit)();
extern bool had_nonfatal_error;
+extern std::unordered_map<LogLevel, int> message_count_by_level;
std::string stringf(const char *fmt, ...);
std::string vstringf(const char *fmt, va_list ap);