path: root/cmds-check.c
diff options
authorRakesh Pandit <>2014-04-19 22:05:41 +0300
committerDavid Sterba <>2014-05-02 17:03:45 +0200
commitad17d5608462e248c63f7be7b47bdbeaf971e52f (patch)
treed50fb61b35788298e6b4fa3969cb83939827f29a /cmds-check.c
parent6ca8f9cfc28364cf7378b54df41008bc52478f2e (diff)
Btrfs-progs: make smatch checker happy (trivial fixes)
It complains errno never gets assigned to zero in find-root and since errno anyway is zero at program started up, lets remove it. Check "copy is less then zero" isn't possible because strtoull used by arg_strtou64 wouldn't return -ve number. Trivial space fixes. Signed-off-by: Rakesh Pandit <> Signed-off-by: David Sterba <>
Diffstat (limited to 'cmds-check.c')
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds-check.c b/cmds-check.c
index 3e089128..a290fe36 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -2882,7 +2882,7 @@ static int add_data_backref(struct cache_tree *extent_cache, u64 bytenr,
} else {
if (back->node.found_extent_tree) {
fprintf(stderr, "Extent back ref already exists "
- "for %llu parent %llu root %llu"
+ "for %llu parent %llu root %llu "
"owner %llu offset %llu num_refs %lu\n",
(unsigned long long)bytenr,
(unsigned long long)parent,
@@ -4735,7 +4735,7 @@ static int verify_backrefs(struct btrfs_trans_handle *trans,
if (!best) {
entry = find_entry(&entries, rec->start, rec->nr);
if (!entry && (!broken_entries || !rec->found_rec)) {
- fprintf(stderr, "Backrefs don't agree with eachother "
+ fprintf(stderr, "Backrefs don't agree with each other "
"and extent record doesn't agree with anybody,"
" so we can't fix bytenr %Lu bytes %Lu\n",
rec->start, rec->nr);