summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-24 22:11:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-24 22:11:44 +0300
commit8d36964bd12e94898d4a4e25c124b72a8926f424 (patch)
tree5227aa68eed00446c7ee54fea58a574f56ce237d
parentaa3e0813f3948d9da71b3d354b8545f0b3108c30 (diff)
downloadmplint-8d36964bd12e94898d4a4e25c124b72a8926f424.tar.gz
mplint-8d36964bd12e94898d4a4e25c124b72a8926f424.tar.bz2
mplint-8d36964bd12e94898d4a4e25c124b72a8926f424.tar.xz
mplint-8d36964bd12e94898d4a4e25c124b72a8926f424.zip
Show in rules warnings also rule number/name.
-rw-r--r--src/rulebase.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/rulebase.cpp b/src/rulebase.cpp
index d6e428a..9010598 100644
--- a/src/rulebase.cpp
+++ b/src/rulebase.cpp
@@ -35,9 +35,10 @@ RuleBase::RuleBase() :
void RuleBase::print(const std::string &text) const
{
- printf("[%s:%d]: %s\n", file.c_str(), line, text.c_str());
-// printf("%s [%s:%d]: %s\n", ruleName.c_str(),
-// file.c_str(), line, text.c_str());
+ printf("[%s:%d]: V%s: %s\n", file.c_str(), line,
+ ruleName.c_str(), text.c_str());
+// printf("%s [%s:%d]: V%s: %s\n", ruleName.c_str(),
+// file.c_str(), line, ruleName.c_str(), text.c_str());
}
void RuleBase::printRaw(const std::string &text) const