From b6793963e91d3387db1583aa39a295944eaaa1e9 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Fri, 8 Jul 2011 19:13:05 +0000 Subject: [PATCH] Downgrade error message - it isn't strictly an internal error in the library, and the known cause within lvm2 got fixed. --- libdm/libdm-deptree.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libdm/libdm-deptree.c b/libdm/libdm-deptree.c index 7723fb147..ac0557253 100644 --- a/libdm/libdm-deptree.c +++ b/libdm/libdm-deptree.c @@ -1754,10 +1754,12 @@ static int _emit_segment_line(struct dm_task *dmt, uint32_t major, stack; return r; } - if (!params[0]) - log_error(INTERNAL_ERROR "Empty parameters for " - "%s %u:%u.", dm_segtypes[seg->type].target, + if (!params[0]) { + log_error("No parameters supplied for %s target " + "%u:%u.", dm_segtypes[seg->type].target, major, minor); + return 0; + } break; }