From 1818dd83a5f52b4cf8202959673cc0e4b6b7949a Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 14 Jul 2009 20:11:27 +0000 Subject: [PATCH] Tweak debug print in accurate git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8997 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/filed/accurate.c | 9 ++++++--- bacula/technotes | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bacula/src/filed/accurate.c b/bacula/src/filed/accurate.c index e36ad80e5f..df39a60689 100644 --- a/bacula/src/filed/accurate.c +++ b/bacula/src/filed/accurate.c @@ -169,6 +169,9 @@ static bool accurate_add_file(JCR *jcr, char *fname, char *lstat) * We check in file_list hash if fname have been backuped * the last time. After we can compare Lstat field. * Full Lstat usage have been removed on 6612 + * + * Returns: true if file has changed (must be backed up) + * false file not changed */ bool accurate_check_file(JCR *jcr, FF_PKT *ff_pkt) { @@ -205,8 +208,8 @@ bool accurate_check_file(JCR *jcr, FF_PKT *ff_pkt) */ if (elt.mtime != ff_pkt->statp.st_mtime) { // Jmsg(jcr, M_SAVED, 0, _("%s st_mtime differs\n"), fname); - Dmsg3(dbglvl, "%s st_mtime differs (%i!=%i)\n", - fname, elt.mtime, ff_pkt->statp.st_mtime); + Dmsg3(dbglvl, "%s st_mtime differs (%lld!=%lld)\n", + fname, elt.mtime, (utime_t)ff_pkt->statp.st_mtime); stat = true; } else if (!(ff_pkt->flags & FO_MTIMEONLY) && (elt.ctime != ff_pkt->statp.st_ctime)) { @@ -217,7 +220,7 @@ bool accurate_check_file(JCR *jcr, FF_PKT *ff_pkt) } accurate_mark_file_as_seen(jcr, &elt); -// Dmsg2(dbglvl, "accurate %s = %i\n", fname, stat); +// Dmsg2(dbglvl, "accurate %s = %d\n", fname, stat); bail_out: unstrip_path(ff_pkt); diff --git a/bacula/technotes b/bacula/technotes index 07711141e5..2176528db4 100644 --- a/bacula/technotes +++ b/bacula/technotes @@ -3,6 +3,7 @@ General: 14Jul09 +kes Tweak debug print in accurate kes Apply patch in bug #1315 by McMichaeli that fixes scripts/logwatch kes Add more output when spooling and no space left ebl Fix postgresql driver bug that displayed rows from time to time. -- 2.39.5