]> sourceware.org Git - lvm2.git/commitdiff
cleanup: convert log_error with log_warn
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 25 Nov 2013 13:34:34 +0000 (14:34 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 28 Nov 2013 11:48:01 +0000 (12:48 +0100)
Collapse 2 ifs and replace log_error() with log_warn(), since\
the reported message is not causing tools error.
(and cannot be probably triggered anyway).

lib/activate/dev_manager.c

index e53273d182db43b85c551801ddda4ce96009c289..bed4d602e96d6816fb9bbedb392ee4b93a543fba 100644 (file)
@@ -112,9 +112,9 @@ static int _info_run(const char *name, const char *dlid, struct dm_info *info,
        if (!(dmt = _setup_task(mknodes ? name : NULL, dlid, 0, dmtask, major, minor)))
                return_0;
 
-       if (!with_open_count)
-               if (!dm_task_no_open_count(dmt))
-                       log_error("Failed to disable open_count");
+       if (!with_open_count &&
+           !dm_task_no_open_count(dmt))
+               log_warn("WARNING: Failed to disable open_count.");
 
        if (!dm_task_run(dmt))
                goto_out;
This page took 0.049903 seconds and 5 git commands to generate.