summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGao Xiang <gaoxiang25@huawei.com>2019-10-23 14:37:18 +0800
committerGao Xiang <hsiangkao@aol.com>2019-10-23 23:45:47 +0800
commite4d05feab86ca8b00c0e0760962df8356802a0fa (patch)
tree3f2e33c265e8ef14fe704144d03c9da6af42eee2
parent53d24ee2a859c937b6a271e14275a2924052428b (diff)
erofs-utils: simplify prints in usage()
Use a single puts instead, trivial update. Link: https://lore.kernel.org/r/20191023063718.152278-1-gaoxiang25@huawei.com Suggested-by: Li Guifu <bluce.liguifu@huawei.com> Signed-off-by: Gao Xiang <gaoxiang25@huawei.com> Reviewed-by: Li Guifu <blucerlee@gmail.com> Signed-off-by: Gao Xiang <hsiangkao@aol.com>
-rw-r--r--mkfs/main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/mkfs/main.c b/mkfs/main.c
index 1161b3f..ab57896 100644
--- a/mkfs/main.c
+++ b/mkfs/main.c
@@ -44,15 +44,15 @@ static void print_available_compressors(FILE *f, const char *delim)
static void usage(void)
{
- fprintf(stderr, "usage: [options] FILE DIRECTORY\n\n");
- fprintf(stderr, "Generate erofs image from DIRECTORY to FILE, and [options] are:\n");
- fprintf(stderr, " -zX[,Y] X=compressor (Y=compression level, optional)\n");
- fprintf(stderr, " -d# set output message level to # (maximum 9)\n");
- fprintf(stderr, " -x# set xattr tolerance to # (< 0, disable xattrs; default 2)\n");
- fprintf(stderr, " -EX[,...] X=extended options\n");
- fprintf(stderr, " -T# set a fixed UNIX timestamp # to all files\n");
- fprintf(stderr, " --help display this help and exit\n");
- fprintf(stderr, "\nAvailable compressors are: ");
+ fputs("usage: [options] FILE DIRECTORY\n\n"
+ "Generate erofs image from DIRECTORY to FILE, and [options] are:\n"
+ " -zX[,Y] X=compressor (Y=compression level, optional)\n"
+ " -d# set output message level to # (maximum 9)\n"
+ " -x# set xattr tolerance to # (< 0, disable xattrs; default 2)\n"
+ " -EX[,...] X=extended options\n"
+ " -T# set a fixed UNIX timestamp # to all files\n"
+ " --help display this help and exit\n"
+ "\nAvailable compressors are: ", stderr);
print_available_compressors(stderr, ", ");
}