]> www.infradead.org Git - mtd-utils.git/commitdiff
ubi-utils: fix printing typos
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 2 Apr 2008 08:04:51 +0000 (11:04 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 2 Apr 2008 08:04:51 +0000 (11:04 +0300)
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
ubi-utils/new-utils/src/common.c
ubi-utils/new-utils/src/ubiupdatevol.c

index 50859dc1eb135e1c67d7a1d70f1ead90218d3868..3d7043541cf2b3ed433307a7e6219d057dacdd53 100644 (file)
@@ -88,7 +88,7 @@ long long ubiutils_get_bytes(const char *str)
        long long bytes = strtoull(str, &endp, 0);
 
        if (endp == str || bytes < 0) {
-               fprintf(stderr, "incorrect amount of bytes: \"%s\"", str);
+               fprintf(stderr, "incorrect amount of bytes: \"%s\"\n", str);
                return -1;
        }
 
@@ -97,7 +97,7 @@ long long ubiutils_get_bytes(const char *str)
 
                if (mult == -1) {
                        fprintf(stderr, "bad size specifier: \"%s\" - "
-                               "should be 'KiB', 'MiB' or 'GiB'", endp);
+                               "should be 'KiB', 'MiB' or 'GiB'\n", endp);
                        return -1;
                }
                bytes *= mult;
index 76d9f4eb54051bd4f44d6a784949f6a6537faef9..5c67fc99bb74c2cd6883b1f50fc2931426ad7593 100644 (file)
@@ -211,7 +211,7 @@ static int update_volume(libubi_t libubi, struct ubi_vol_info *vol_info)
 
        err = stat(args.img, &st);
        if (err < 0) {
-               errmsg("stat failed on \"%s\"", args.node);
+               errmsg("stat failed on \"%s\"", args.img);
                goto out_free;
        }