From 76322d3b3e1cf7e118a8207975ae8342de454fa3 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 4 Dec 2017 13:34:10 +0100 Subject: [PATCH] clenaup: use log_warn Avoid logging error when function is not failing. Technically can't really happen ATM anyway. --- libdm/libdm-deptree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index 6370e8850..c976cceb8 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -2705,7 +2705,7 @@ static int _load_node(struct dm_tree_node *dnode) } if (!dm_task_no_open_count(dmt)) - log_error("Failed to disable open_count"); + log_warn("WARNING: Failed to disable open_count."); dm_list_iterate_items(seg, &dnode->props.segs) if (!_emit_segment(dmt, dnode->info.major, dnode->info.minor, @@ -2713,7 +2713,7 @@ static int _load_node(struct dm_tree_node *dnode) goto_out; if (!dm_task_suppress_identical_reload(dmt)) - log_error("Failed to suppress reload of identical tables."); + log_warn("WARNING: Failed to suppress reload of identical tables."); if ((r = dm_task_run(dmt))) { r = dm_task_get_info(dmt, &dnode->info);