From c2db220d886192c1e3240dd6f38d5ad67c39bfdd Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 11 Aug 2019 00:46:24 +0200 Subject: Split gensquashfs help string because it got too long There is an upper limit of characters in a string literal that it managed to cross. Signed-off-by: David Oberhollenzer --- mkfs/options.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mkfs/options.c b/mkfs/options.c index 01727fa..04f2fef 100644 --- a/mkfs/options.c +++ b/mkfs/options.c @@ -84,7 +84,9 @@ static const char *help_string = " --quiet, -q Do not print out progress reports.\n" " --help, -h Print help text and exit.\n" " --version, -V Print version information and exit.\n" -"\n" +"\n"; + +const char *help_details = "When using the pack file option, the given file is expected to contain\n" "newline separated entries that describe the files to be included in the\n" "SquashFS image. The following entry types can be specified:\n" @@ -215,6 +217,7 @@ void process_command_line(options_t *opt, int argc, char **argv) case 'h': printf(help_string, __progname, SQFS_DEFAULT_BLOCK_SIZE, SQFS_DEVBLK_SIZE); + fputs(help_details, stdout); compressor_print_available(); exit(EXIT_SUCCESS); case 'V': -- cgit v1.2.3