From 96f259726ca49a6719eb28faabe720baef0058fb Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 3 Jan 2006 20:53:57 +0000 Subject: [PATCH] Fix dmsetup version driver version --- WHATS_NEW_DM | 1 + tools/dmsetup.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 13195dc85..28272a3f3 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.03 - ============================ + Fix dmsetup version driver version. Add sync, nosync and block_on_error mirror log parameters. Add hweight32. Fix dmeventd build. diff --git a/tools/dmsetup.c b/tools/dmsetup.c index 4b5c13284..d0c26b2fa 100644 --- a/tools/dmsetup.c +++ b/tools/dmsetup.c @@ -502,7 +502,7 @@ static int _version(int argc, char **argv, void *data) if (dm_get_library_version(version, sizeof(version))) printf("Library version: %s\n", version); - if (dm_driver_version(version, sizeof(version))) + if (!dm_driver_version(version, sizeof(version))) return 0; printf("Driver version: %s\n", version);