Browse code

bb12427 - Change printf() usage to logg() in libfreshclam so --quiet option works correctly. Patch courtesy of Reio Remma.

Micah Snyder authored on 2019/11/02 03:28:04
Showing 2 changed files
... ...
@@ -13,7 +13,7 @@ ClamAV 0.102.1 is a security patch release to address the following issues.
13 13
 
14 14
 The ClamAV team thanks the following individuals for their code submissions:
15 15
 
16
--
16
+- Reio Remma
17 17
 
18 18
 ## 0.102.0
19 19
 
... ...
@@ -230,7 +230,7 @@ fc_error_t download_complete_callback(const char *dbFilename, void *context)
230 230
     logg("*download_complete_callback:   fc_context->bTestDatabases   : %u\n", fc_context->bBytecodeEnabled);
231 231
     logg("*download_complete_callback:   fc_context->bBytecodeEnabled : %u\n", fc_context->bBytecodeEnabled);
232 232
 
233
-    printf("Testing database: '%s' ...\n", dbFilename);
233
+    logg("Testing database: '%s' ...\n", dbFilename);
234 234
 
235 235
     if (fc_context->bTestDatabases) {
236 236
 #ifdef WIN32
... ...
@@ -368,9 +368,9 @@ fc_error_t download_complete_callback(const char *dbFilename, void *context)
368 368
 done:
369 369
 
370 370
     if (FC_SUCCESS == status) {
371
-        printf("Database test passed.\n");
371
+        logg("Database test passed.\n");
372 372
     } else {
373
-        printf("Database test FAILED.\n");
373
+        logg("!Database test FAILED.\n");
374 374
     }
375 375
 
376 376
     g_sigchildWait = 1;