From patchwork Wed Dec 10 20:51:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: mwilck@arcor.de X-Patchwork-Id: 5472571 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0EEB6BEEA8 for ; Wed, 10 Dec 2014 21:06:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B9A6201B4 for ; Wed, 10 Dec 2014 21:06:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 547782018E for ; Wed, 10 Dec 2014 21:06:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933334AbaLJVGe (ORCPT ); Wed, 10 Dec 2014 16:06:34 -0500 Received: from mail-in-09.arcor-online.net ([151.189.21.49]:35366 "EHLO mail-in-09.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933301AbaLJVFl (ORCPT ); Wed, 10 Dec 2014 16:05:41 -0500 Received: from mail-in-02-z2.arcor-online.net (mail-in-19-z2.arcor-online.net [151.189.8.36]) by mx.arcor.de (Postfix) with ESMTP id E5D19197D19 for ; Wed, 10 Dec 2014 22:05:39 +0100 (CET) Received: from mail-in-10.arcor-online.net (mail-in-10.arcor-online.net [151.189.21.50]) by mail-in-02-z2.arcor-online.net (Postfix) with ESMTP id DFCB03F80BF; Wed, 10 Dec 2014 22:05:39 +0100 (CET) X-Greylist: Passed host: 188.96.131.100 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-10.arcor-online.net BBB262D6538 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1418245539; bh=9FaCc404zHj2rGYKcsFqjN+liF2v/t0k2Fa9hmOTXzw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=XYSXxyUtXMrtrIeHbkzdtUBjT56HFjrN50l0waxu/rbo4WUW/6e9IHuRNk45oXLRv jxWCs6l2CN/z8D4jmSN+48rOk+4L2rTMDfWPZa47YshVbZdXEkyIPRf50qLf7xPKlW 7TAX5G8LGrtqmsFU7WOIzWkzSqlCmC4huUW0klv0= X-Greylist: Passed host: 188.96.131.100 Received: from localhost.localdomain (dslb-188-096-131-100.188.096.pools.vodafone-ip.de [188.96.131.100]) (Authenticated sender: mwilck@arcor.de) by mail-in-10.arcor-online.net (Postfix) with ESMTPSA id BBB262D6538; Wed, 10 Dec 2014 22:05:39 +0100 (CET) From: mwilck@arcor.de To: linux-btrfs@vger.kernel.org Cc: mwilck@arcor.de Subject: [PATCH 03/18] btrfs-progs: btrfs-debug-tree: fix usage message Date: Wed, 10 Dec 2014 21:51:33 +0100 Message-Id: <1418244708-7087-4-git-send-email-mwilck@arcor.de> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <1418244708-7087-1-git-send-email-mwilck@arcor.de> References: <1418244708-7087-1-git-send-email-mwilck@arcor.de> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Martin Wilck Adapt usage message to the additional options introduced. Signed-off-by: Martin Wilck --- btrfs-debug-tree.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/btrfs-debug-tree.c b/btrfs-debug-tree.c index 7cdc368..4c1e835 100644 --- a/btrfs-debug-tree.c +++ b/btrfs-debug-tree.c @@ -31,22 +31,23 @@ static int print_usage(void) { - fprintf(stderr, "usage: btrfs-debug-tree [-e] [-d] [-r] [-R] [-u]\n"); - fprintf(stderr, " [-b block_num ] device\n"); + fprintf(stderr, "usage: btrfs-debug-tree [-e] [-d] [-r] [-R] [-u] [-B]\n"); + fprintf(stderr, " [-t tree_id] device\n"); + fprintf(stderr, " btrfs-debug-tree [-b block_num [-f]] device\n"); fprintf(stderr, "\t-e : print detailed extents info\n"); fprintf(stderr, "\t-d : print info of btrfs device and root tree dirs" " only\n"); fprintf(stderr, "\t-r : print info of roots only\n"); fprintf(stderr, "\t-R : print info of roots and root backups\n"); fprintf(stderr, "\t-u : print info of uuid tree only\n"); - fprintf(stderr, "\t-b block_num : print info of the specified block" - " only\n"); - fprintf(stderr, "\t-f : (with -b) follow subtree of the specified" - " block\n"); fprintf(stderr, "\t-t tree_id : print only the tree with the given id\n"); fprintf(stderr, "\t-B nr: use root backup instead of real root\n"); + fprintf(stderr, "\t-b block_num : print info of the specified block" + " only\n"); + fprintf(stderr, "\t-f : (with -b) follow subtree of the specified" + " block\n"); fprintf(stderr, "%s\n", BTRFS_BUILD_VERSION); exit(1); }