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;
}
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;
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;
}