From cac0722cacaac06ac1211194f1d6c21572a32998 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 16 Jul 2014 23:57:43 +0200 Subject: metadata: use outfc for comments Few unecessary comments were written to on-disc metadata. Use outfc() to have comments only in archived files. (may also save couple bytes in ringbuffer). TODO: needed validation against newline char... --- lib/striped/striped.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/striped') diff --git a/lib/striped/striped.c b/lib/striped/striped.c index 3b0846780..dfd45181f 100644 --- a/lib/striped/striped.c +++ b/lib/striped/striped.c @@ -94,8 +94,8 @@ static int _striped_text_import(struct lv_segment *seg, const struct dm_config_n static int _striped_text_export(const struct lv_segment *seg, struct formatter *f) { - outf(f, "stripe_count = %u%s", seg->area_count, - (seg->area_count == 1) ? "\t# linear" : ""); + outfc(f, (seg->area_count == 1) ? "# linear" : NULL, + "stripe_count = %u", seg->area_count); if (seg->area_count > 1) outsize(f, (uint64_t) seg->stripe_size, -- cgit v1.2.1