From 897058e5c6ef393feed108e5b990989f63c79e31 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Wed, 21 Nov 2001 18:12:41 +0000 Subject: [PATCH] o Display major number --- tools/dmsetup.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/dmsetup.c b/tools/dmsetup.c index 25cb12d17..cce4e4e0c 100644 --- a/tools/dmsetup.c +++ b/tools/dmsetup.c @@ -164,15 +164,16 @@ static int _info(int argc, char **argv) goto out; if (!info.exists) { - printf("No such device.\n"); + printf("Device does not exist.\n"); r = 1; goto out; } - printf("%s\t", info.suspended ? "SUSPENDED" : "ACTIVE"); - printf("%d\t", info.open_count); - printf("%d\t", info.minor); - printf("%d\n", info.target_count); + printf("state: %s\n", + info.suspended ? "SUSPENDED" : "ACTIVE"); + printf("open count: %d\n", info.open_count); + printf("major, minor: %d, %d\n", info.major, info.minor); + printf("number of targets: %d\n", info.target_count); r = 1; out: