From: Zdenek Kabelac Date: Thu, 8 Jul 2010 13:05:27 +0000 (+0000) Subject: Small update of memlock debug messages. X-Git-Tag: v2_02_91~1705 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=37036b0215e29950836c6a9e827f170d1f5100d1;p=lvm2.git Small update of memlock debug messages. Gives slightly better alligned lines for reading. --- 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);