From patchwork Mon Nov 2 14:20:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zdenek Kabelac X-Patchwork-Id: 57024 Received: from hormel.redhat.com (hormel1.redhat.com [209.132.177.33]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA2EKlOd029902 for ; Mon, 2 Nov 2009 14:20:48 GMT Received: from listman.util.phx.redhat.com (listman.util.phx.redhat.com [10.8.4.110]) by hormel.redhat.com (Postfix) with ESMTP id D6120619D77; Mon, 2 Nov 2009 09:20:39 -0500 (EST) Received: from int-mx03.intmail.prod.int.phx2.redhat.com (nat-pool.util.phx.redhat.com [10.8.5.200]) by listman.util.phx.redhat.com (8.13.1/8.13.1) with ESMTP id nA2EKZFE012326 for ; Mon, 2 Nov 2009 09:20:36 -0500 Received: from dhcp-0-185.brq.redhat.com (dhcp-0-185.brq.redhat.com [10.34.0.185]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nA2EKY77006372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 Nov 2009 09:20:35 -0500 Received: from dhcp-0-185.brq.redhat.com (dhcp-0-185.brq.redhat.com [127.0.0.1]) by dhcp-0-185.brq.redhat.com (8.14.3/8.14.3) with ESMTP id nA2EKXpR008461; Mon, 2 Nov 2009 15:20:33 +0100 Received: (from kabi@localhost) by dhcp-0-185.brq.redhat.com (8.14.3/8.14.3/Submit) id nA2EKXeN008460; Mon, 2 Nov 2009 15:20:33 +0100 From: Zdenek Kabelac To: dm-devel@redhat.com Date: Mon, 2 Nov 2009 15:20:09 +0100 Message-Id: <1257171622-8380-6-git-send-email-zkabelac@redhat.com> In-Reply-To: <1257171622-8380-5-git-send-email-zkabelac@redhat.com> References: <1257171622-8380-1-git-send-email-zkabelac@redhat.com> <1257171622-8380-2-git-send-email-zkabelac@redhat.com> <1257171622-8380-3-git-send-email-zkabelac@redhat.com> <1257171622-8380-4-git-send-email-zkabelac@redhat.com> <1257171622-8380-5-git-send-email-zkabelac@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-loop: dm-devel@redhat.com Cc: Zdenek Kabelac Subject: [dm-devel] [PATCH 05/18] Use outsz macro X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.5 Precedence: junk Reply-To: device-mapper development List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com diff --git a/lib/mirror/mirrored.c b/lib/mirror/mirrored.c index e93ed0b..dfac91e 100644 --- a/lib/mirror/mirrored.c +++ b/lib/mirror/mirrored.c @@ -149,8 +149,8 @@ static int _mirrored_text_export(const struct lv_segment *seg, struct formatter { outf(f, "mirror_count = %u", seg->area_count); if (seg->status & PVMOVE) - out_size(f, (uint64_t) seg->extents_copied * seg->lv->vg->extent_size, - "extents_moved = %" PRIu32, seg->extents_copied); + outsz(f, (uint64_t) seg->extents_copied * seg->lv->vg->extent_size, + "extents_moved = %" PRIu32, seg->extents_copied); if (seg->log_lv) outf(f, "mirror_log = \"%s\"", seg->log_lv->name); if (seg->region_size) diff --git a/lib/striped/striped.c b/lib/striped/striped.c index f187da5..220edd8 100644 --- a/lib/striped/striped.c +++ b/lib/striped/striped.c @@ -98,8 +98,8 @@ static int _striped_text_export(const struct lv_segment *seg, struct formatter * (seg->area_count == 1) ? "\t# linear" : ""); if (seg->area_count > 1) - out_size(f, (uint64_t) seg->stripe_size, - "stripe_size = %u", seg->stripe_size); + outsz(f, (uint64_t) seg->stripe_size, + "stripe_size = %u", seg->stripe_size); return out_areas(f, seg, "stripe"); }