diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-07-17 17:00:17 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2009-07-17 17:00:17 +0200 |
commit | 6b04ba288d6a618d249a9bb3399a65b3297d9f5f (patch) | |
tree | 13c26e10c6f0a05d08c49880e33874f9440c1115 /src/libstrongswan/integrity_checker.c | |
parent | ca366aeea0b47b7ea1fcdf83dd05ad4e03d39c16 (diff) | |
download | strongswan-6b04ba288d6a618d249a9bb3399a65b3297d9f5f.tar.bz2 strongswan-6b04ba288d6a618d249a9bb3399a65b3297d9f5f.tar.xz |
streamlined debug output of integrity tests
Diffstat (limited to 'src/libstrongswan/integrity_checker.c')
-rw-r--r-- | src/libstrongswan/integrity_checker.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/libstrongswan/integrity_checker.c b/src/libstrongswan/integrity_checker.c index af48a5d2a..9ad87833e 100644 --- a/src/libstrongswan/integrity_checker.c +++ b/src/libstrongswan/integrity_checker.c @@ -166,7 +166,6 @@ static integrity_checksum_t *find_checksum(private_integrity_checker_t *this, return &this->checksums[i]; } } - DBG1("no checksum found for %s", name); return NULL; } @@ -182,16 +181,17 @@ static bool check_file(private_integrity_checker_t *this, cs = find_checksum(this, name); if (!cs) { + DBG1(" '%s' file checksum not found", name); return FALSE; } sum = build_file(this, file); if (!sum || cs->file != sum) { - DBG1("file checksum %s of '%s' invalid (got %08x, expected %08x)", - name, file, sum, cs->file); + DBG1(" invalid '%s' file checksum: %08x, expected %08x", + name, sum, cs->file); return FALSE; } - DBG2("file checksum %s tested successfully", name); + DBG2(" valid '%s' file checksum: %08x", name, sum); return TRUE; } @@ -207,16 +207,17 @@ static bool check_segment(private_integrity_checker_t *this, cs = find_checksum(this, name); if (!cs) { + DBG1(" '%s' segment checksum not found", name); return FALSE; } sum = build_segment(this, sym); if (!sum || cs->segment != sum) { - DBG1("segment checksum %s invalid (got %08x, expected %08x)", + DBG1(" invalid '%s' segment checksum: %08x, expected %08x", name, sum, cs->segment); return FALSE; } - DBG2("segment checksum %s tested successfully", name); + DBG2(" valid '%s' segment checksum: %08x", name, sum); return TRUE; } |