From 37036b0215e29950836c6a9e827f170d1f5100d1 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Thu, 8 Jul 2010 13:05:27 +0000 Subject: [PATCH] Small update of memlock debug messages. Gives slightly better alligned lines for reading. --- lib/mm/memlock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c index bc18c0df8..3bc13e40d 100644 --- a/lib/mm/memlock.c +++ b/lib/mm/memlock.c @@ -137,7 +137,8 @@ static int _maps_line(struct cmd_context *cmd, lvmlock_t lock, /* Select readable maps */ if (fr != 'r') { - log_debug("mlock area unreadable '%s': Skipping.", line); + log_debug("% area unreadable %s : Skipping.", + (lock == LVM_MLOCK) ? "mlock" : "munlock", line); return 1; } @@ -171,7 +172,7 @@ static int _maps_line(struct cmd_context *cmd, lvmlock_t lock, } *mstats += sz; - log_debug("%s %10ldKiB %12lx - %12lx %c%c%c%c %s", + log_debug("%s %10ldKiB %12lx - %12lx %c%c%c%c%s", (lock == LVM_MLOCK) ? "mlock" : "munlock", ((long)sz + 1023) / 1024, from, to, fr, fw, fx, fp, line + pos); -- 2.43.5