From: Andreas Steffen Date: Mon, 5 Nov 2012 20:56:49 +0000 (+0100) Subject: fixed debug output X-Git-Tag: 5.0.2dr4~229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dad76a582880c2a8c8dec095b47e8b61ecd27fe9;p=thirdparty%2Fstrongswan.git fixed debug output --- diff --git a/src/libimcv/plugins/imv_os/imv_os_database.c b/src/libimcv/plugins/imv_os/imv_os_database.c index a2be4330fc..50de3b7669 100644 --- a/src/libimcv/plugins/imv_os/imv_os_database.c +++ b/src/libimcv/plugins/imv_os/imv_os_database.c @@ -94,8 +94,6 @@ METHOD(imv_os_database_t, check_packages, status_t, } e->destroy(e); - DBG1(DBG_IMV, "'%s': pid = %d", product, pid); - while (package_enumerator->enumerate(package_enumerator, &name, &version)) { /* Convert package name chunk to a string */ @@ -116,7 +114,7 @@ METHOD(imv_os_database_t, check_packages, status_t, } if (!e->enumerate(e, &gid)) { - /* not found in database vor any product - skip */ + /* package not present in database for any product - skip */ count_not_found++; e->destroy(e); continue; @@ -171,6 +169,7 @@ METHOD(imv_os_database_t, check_packages, status_t, } else { + /* package not present in database for this product - skip */ count_not_found++; } free(package); @@ -178,8 +177,8 @@ METHOD(imv_os_database_t, check_packages, status_t, } free(product); - DBG1(DBG_IMV, "processed %d packages: %d ok, %d no match, %d not found", - count, count_ok, count_no_match, count_not_found); + DBG1(DBG_IMV, "processed %d packages: %d no match, %d ok, %d not found", + count, count_no_match, count_ok, count_not_found); return status; }