From: Vsevolod Stakhov Date: Wed, 11 Nov 2015 17:22:34 +0000 (+0000) Subject: Improve diagnostic X-Git-Tag: 1.1.0~582 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c76507403484fe3598d781edb48664a59f34a03a;p=thirdparty%2Frspamd.git Improve diagnostic --- diff --git a/clang-plugin/printf_check.cc b/clang-plugin/printf_check.cc index c2144127b7..1cee49cd70 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; }