[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

Török Edvin edwin at clamav.net
Sun Apr 4 01:21:19 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit 000d1cb848a4a2cd733fbe5ae980bb61d5cdfc86
Author: Török Edvin <edwin at clamav.net>
Date:   Tue Feb 23 23:53:27 2010 +0200

    make debug output for swizz break lines properly.

diff --git a/libclamav/special.c b/libclamav/special.c
index 14298dc..ff518c8 100644
--- a/libclamav/special.c
+++ b/libclamav/special.c
@@ -488,10 +488,13 @@ int cli_detect_swizz(struct swizz_stats *stats)
 			uint32_t v = gn[i];
 			gn[i] = (v<<15)/all;
 			if (cli_debug_flag)
-			cli_dbgmsg("%lu, ", (unsigned long)gn[i]);
+			    fprintf(stderr, "%lu, ", (unsigned long)gn[i]);
 		}
 		global_swizz = swizz_j48_global(gn) ? CL_VIRUS : CL_CLEAN;
-		cli_dbgmsg("\ncli_detect_swizz: global: %s\n", global_swizz ? "suspicious" : "clean");
+		if (cli_debug_flag) {
+		    fprintf(stderr, "\n");
+		    cli_dbgmsg("cli_detect_swizz: global: %s\n", global_swizz ? "suspicious" : "clean");
+		}
 	}
 
 	if (stats->errors > stats->entries || stats->errors >= SWIZZ_MAXERRORS) {

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list