aboutsummaryrefslogtreecommitdiffstats
path: root/debugfs/icheck.c
diff options
context:
space:
mode:
authorEric Whitney <enwlinux@gmail.com>2013-12-30 16:43:46 -0500
committerTheodore Ts'o <tytso@mit.edu>2013-12-30 16:56:19 -0500
commita25fffae5cbdb9349fa3c358c9714584e9de7b33 (patch)
treeeeb5bbc9f2bc10984a7ea6462eef9ff34f080342 /debugfs/icheck.c
parentd7e6e9787113db16df4c6c50a92da97364149e1a (diff)
downloadandroid_external_e2fsprogs-a25fffae5cbdb9349fa3c358c9714584e9de7b33.tar.gz
android_external_e2fsprogs-a25fffae5cbdb9349fa3c358c9714584e9de7b33.tar.bz2
android_external_e2fsprogs-a25fffae5cbdb9349fa3c358c9714584e9de7b33.zip
debugfs: restore and tweak original error messaging
In response to reviewer comments, commit fe56188b07 included changes that modified some of the code used to output error messages when checking user-supplied block numbers. These changes converted calls to parse_ulonglong() to calls to strtoblk(). Because strtoblk() calls parse_ulonglong(), and both output error messages, two redundant and relatively generic messages were output on each error. Fix this by removing the error message output from strtoblk(), and extending it to accept an optional error message argument that it supplies in lieu of a default to parse_ulonglong(). Also, revert to the more descriptive original error messages with mods per reviewer comments, and fix an error message in do_replace_node(). Signed-off-by: Eric Whitney <enwlinux@gmail.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'debugfs/icheck.c')
-rw-r--r--debugfs/icheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/debugfs/icheck.c b/debugfs/icheck.c
index 48f432aa..3b9bd145 100644
--- a/debugfs/icheck.c
+++ b/debugfs/icheck.c
@@ -86,7 +86,7 @@ void do_icheck(int argc, char **argv)
}
for (i=1; i < argc; i++) {
- if (strtoblk(argv[0], argv[i], &bw.barray[i-1].blk))
+ if (strtoblk(argv[0], argv[i], NULL, &bw.barray[i-1].blk))
goto error_out;
}