summaryrefslogtreecommitdiff
path: root/tools/dmsetup.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dmsetup.c')
-rw-r--r--tools/dmsetup.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index c9549c6b5..120cae05f 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -2197,8 +2197,10 @@ static int _status(CMD_ARGS)
c++;
if (*c)
c++;
- while (*c && *c != ' ')
- *c++ = '0';
+ /* don't suppress kernel key descriptions */
+ if (*c != ':')
+ while (*c && *c != ' ')
+ *c++ = '0';
}
printf(FMTu64 " " FMTu64 " %s %s",
start, length, target_type, params);