Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1420007 > unrolled thread

[PATCH 1/1] btrfs: Use correct format specifier

Started byHeinrich Schuchardt <xypron.glpk@gmx.de>
First post2016-06-11 18:20 +0200
Last post2016-06-13 17:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 1/1] btrfs: Use correct format specifier Heinrich Schuchardt <xypron.glpk@gmx.de> - 2016-06-11 18:20 +0200
    Re: [PATCH 1/1] btrfs: Use correct format specifier David Sterba <dsterba@suse.cz> - 2016-06-13 17:20 +0200

#1420007 — [PATCH 1/1] btrfs: Use correct format specifier

FromHeinrich Schuchardt <xypron.glpk@gmx.de>
Date2016-06-11 18:20 +0200
Subject[PATCH 1/1] btrfs: Use correct format specifier
Message-ID<rITNE-5is-11@gated-at.bofh.it>
Component mirror_num of struct btrfsic_block is defined
as unsigned int. Use %u as format specifier.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 fs/btrfs/check-integrity.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/check-integrity.c b/fs/btrfs/check-integrity.c
index ca70bc7..5d5cae0 100644
--- a/fs/btrfs/check-integrity.c
+++ b/fs/btrfs/check-integrity.c
@@ -2646,7 +2646,7 @@ static void btrfsic_dump_tree_sub(const struct btrfsic_state *state,
 	 * This algorithm is recursive because the amount of used stack space
 	 * is very small and the max recursion depth is limited.
 	 */
-	indent_add = sprintf(buf, "%c-%llu(%s/%llu/%d)",
+	indent_add = sprintf(buf, "%c-%llu(%s/%llu/%u)",
 			     btrfsic_get_block_type(state, block),
 			     block->logical_bytenr, block->dev_state->name,
 			     block->dev_bytenr, block->mirror_num);
-- 
2.1.4

[toc] | [next] | [standalone]


#1420973

FromDavid Sterba <dsterba@suse.cz>
Date2016-06-13 17:20 +0200
Message-ID<rJBOF-82T-11@gated-at.bofh.it>
In reply to#1420007
On Sat, Jun 11, 2016 at 06:11:10PM +0200, Heinrich Schuchardt wrote:
> Component mirror_num of struct btrfsic_block is defined
> as unsigned int. Use %u as format specifier.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: David Sterba <dsterba@suse.com>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web