aboutsummaryrefslogtreecommitdiffstats
path: root/clang-plugin
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-11 17:22:34 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-11 17:22:34 +0000
commitc76507403484fe3598d781edb48664a59f34a03a (patch)
treeb553593a4591f163d3a30826b1f96e4f2c92a6ed /clang-plugin
parent613265222dc98a7dfdffa4a84966606f4c3e8445 (diff)
downloadrspamd-c76507403484fe3598d781edb48664a59f34a03a.tar.gz
rspamd-c76507403484fe3598d781edb48664a59f34a03a.zip
Improve diagnostic
Diffstat (limited to 'clang-plugin')
-rw-r--r--clang-plugin/printf_check.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang-plugin/printf_check.cc b/clang-plugin/printf_check.cc
index c2144127b..1cee49cd7 100644
--- a/clang-plugin/printf_check.cc
+++ b/clang-plugin/printf_check.cc
@@ -504,7 +504,8 @@ namespace rspamd {
if (!found) {
print_error (
std::string ("bad argument for ") + fmt + " arg: " +
- arg->getType ().getAsString (),
+ arg->getType ().getAsString () + ", resolved as: " +
+ builtin_type->getNameAsCString (ctx->past->getPrintingPolicy ()),
arg, ctx->past, ctx->pci);
return false;
}