diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-11 17:22:34 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-11 17:22:34 +0000 |
commit | c76507403484fe3598d781edb48664a59f34a03a (patch) | |
tree | b553593a4591f163d3a30826b1f96e4f2c92a6ed | |
parent | 613265222dc98a7dfdffa4a84966606f4c3e8445 (diff) | |
download | rspamd-c76507403484fe3598d781edb48664a59f34a03a.tar.gz rspamd-c76507403484fe3598d781edb48664a59f34a03a.zip |
Improve diagnostic
-rw-r--r-- | clang-plugin/printf_check.cc | 3 |
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; } |