diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2010-07-08 13:05:27 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2010-07-08 13:05:27 +0000 |
commit | 37036b0215e29950836c6a9e827f170d1f5100d1 (patch) | |
tree | 26200f0257bb65f95f045036fb83e7356b643e55 /lib/mm/memlock.c | |
parent | 4ec2ae863259cf1b056df3b2eef1792bd30fd63f (diff) | |
download | lvm2-37036b0215e29950836c6a9e827f170d1f5100d1.tar.gz lvm2-37036b0215e29950836c6a9e827f170d1f5100d1.tar.xz lvm2-37036b0215e29950836c6a9e827f170d1f5100d1.zip |
Small update of memlock debug messages.
Gives slightly better alligned lines for reading.
Diffstat (limited to 'lib/mm/memlock.c')
-rw-r--r-- | lib/mm/memlock.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c index bc18c0df..3bc13e40 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); |