]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add rspamd_conditional_debug_fast to format checks
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Mar 2019 14:21:30 +0000 (14:21 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 20 Mar 2019 14:21:30 +0000 (14:21 +0000)
clang-plugin/printf_check.cc

index 4bb611787065e04b7767a64bc4040f94f32f66d0..4bb0f33a81810745d8dcc931a7926b6fcb777dc3 100644 (file)
@@ -353,12 +353,13 @@ namespace rspamd {
                {
                        /* name -> format string position */
                        printf_functions = {
-                                       {"rspamd_printf",               0},
-                                       {"rspamd_default_log_function", 4},
-                                       {"rspamd_snprintf",             2},
-                                       {"rspamd_fprintf",              1},
-                                       {"rspamd_printf_gstring",       1},
-                                       {"rspamd_printf_fstring",       1}
+                                       {"rspamd_printf",                 0},
+                                       {"rspamd_default_log_function",   4},
+                                       {"rspamd_snprintf",               2},
+                                       {"rspamd_fprintf",                1},
+                                       {"rspamd_printf_gstring",         1},
+                                       {"rspamd_printf_fstring",         1},
+                                       {"rspamd_conditional_debug_fast", 6},
                        };
 
                        format_specs = {