From c63feda51ec293d1d4aaaa852a66d472601bb8a6 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 18 Sep 2023 09:32:05 -0900 Subject: [PATCH] Additional memory allocated since startup: %d bytes message now identical to other components --- citadel/server/housekeeping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/citadel/server/housekeeping.c b/citadel/server/housekeeping.c index 5ce28bf81..a5daff9f0 100644 --- a/citadel/server/housekeeping.c +++ b/citadel/server/housekeeping.c @@ -71,7 +71,7 @@ void check_ref_counts(void) { void keep_an_eye_on_memory_usage(void) { static void *original_brk = NULL; if (!original_brk) original_brk = sbrk(0); // Remember the original program break so we can test for leaks - syslog(LOG_DEBUG, "original_brk=%lx, current_brk=%lx, addl=%ld", (long)original_brk, (long)sbrk(0), (long)(sbrk(0)-original_brk)); + syslog(LOG_DEBUG, "Additional memory allocated since startup: %d bytes", (sbrk(0)-original_brk)); } -- 2.30.2