commit 120d445: [Minor] Slightly improve log message

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Oct 30 18:00:09 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-10-30 17:59:09 +0000
URL: https://github.com/rspamd/rspamd/commit/120d445b92033253b8466e8a52c45f6f2dfcf24c (HEAD -> master)

[Minor] Slightly improve log message

---
 src/libutil/map.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/libutil/map.c b/src/libutil/map.c
index 6bcf8d081..441b408ba 100644
--- a/src/libutil/map.c
+++ b/src/libutil/map.c
@@ -1941,8 +1941,11 @@ rspamd_map_on_stat (struct ev_loop *loop, ev_stat *w, int revents)
 	if (w->attr.st_nlink > 0) {
 
 		if (w->attr.st_mtime > w->prev.st_mtime) {
-			msg_info_map ("old mtime is %t, new mtime is %t for map file %s",
-					w->prev.st_mtime, w->attr.st_mtime, w->path);
+			msg_info_map ("old mtime is %t (size = %Hz), "
+				 "new mtime is %t (size = %Hz) for map file %s",
+					w->prev.st_mtime, (gsize)w->prev.st_size,
+					w->attr.st_mtime, (gsize)w->attr.st_size,
+					w->path);
 
 			/* Fire need modify flag */
 			struct rspamd_map_backend *bk;


More information about the Commits mailing list