From 8d36964bd12e94898d4a4e25c124b72a8926f424 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 24 May 2014 22:11:44 +0300 Subject: Show in rules warnings also rule number/name. --- src/rulebase.cpp | 7 ++++--- 1 file 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 -- cgit v1.2.3-70-g09d2