diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 351fe6854..5dca63554 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.25 - ==================================== + Use log_warn for reporting field help text instead of log_print. Change cluster mirror log type name (s/clustered_/clustered-/) Version 1.02.24 - 20th December 2007 diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 182198fb0..d8bd791f2 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -260,16 +260,16 @@ static void _display_fields(struct dm_report *rh) desc = " "; if (desc != last_desc) { if (*last_desc) - log_print(" "); - log_print("%s Fields", desc); - log_print("%*.*s", (int) strlen(desc) + 7, - (int) strlen(desc) + 7, - "------------------------------------------"); + log_warn(" "); + log_warn("%s Fields", desc); + log_warn("%*.*s", (int) strlen(desc) + 7, + (int) strlen(desc) + 7, + "------------------------------------------"); } /* FIXME Add line-wrapping at terminal width (or 80 cols) */ - log_print(" %-*s - %s", (int) id_len, rh->fields[f].id, rh->fields[f].desc); + log_warn(" %-*s - %s", (int) id_len, rh->fields[f].id, rh->fields[f].desc); last_desc = desc; } } @@ -444,7 +444,7 @@ static int _parse_options(struct dm_report *rh, const char *format) if (!_field_match(rh, ws, (size_t) (we - ws))) { _display_fields(rh); - log_print(" "); + log_warn(" "); if (strcasecmp(ws, "help") && strcmp(ws, "?")) log_error("Unrecognised field: %.*s", (int) (we - ws), ws);