Created
March 6, 2015 22:08
-
-
Save pamaury/8ea0dc34346e777c9c62 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/utils/regtools/qeditor/backend.cpp b/utils/regtools/qeditor/backend.cpp | |
index 5f006b0..a3def07 100644 | |
--- a/utils/regtools/qeditor/backend.cpp | |
+++ b/utils/regtools/qeditor/backend.cpp | |
@@ -37,6 +37,20 @@ SocFile::SocFile(const QString& filename) | |
{ | |
soc_desc::error_context_t ctx; | |
m_valid = soc_desc::parse_xml(filename.toStdString(), m_soc, ctx); | |
+ for(size_t j = 0; j < ctx.count(); j++) | |
+ { | |
+ soc_desc::error_t e = ctx.get(j); | |
+ switch(e.level()) | |
+ { | |
+ case soc_desc::error_t::INFO: printf("[INFO]"); break; | |
+ case soc_desc::error_t::WARNING: printf("[WARN]"); break; | |
+ case soc_desc::error_t::FATAL: printf("[FATAL]"); break; | |
+ default: printf("[UNK]"); break; | |
+ } | |
+ if(e.location().size() != 0) | |
+ printf(" %s:", e.location().c_str()); | |
+ printf(" %s\n", e.message().c_str()); | |
+ } | |
} | |
bool SocFile::IsValid() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment