]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Improve diagnostic
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 11 Nov 2015 17:22:34 +0000 (17:22 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 11 Nov 2015 17:22:34 +0000 (17:22 +0000)
clang-plugin/printf_check.cc

index c2144127b7ce6a91931a46a7a4c1e6bb8786aefb..1cee49cd70bd2419eb6daa7ab0b0f263ab93be2c 100644 (file)
@@ -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;
                }