aboutsummaryrefslogtreecommitdiff
path: root/mkfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-11 00:46:24 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-11 00:46:24 +0200
commitc2db220d886192c1e3240dd6f38d5ad67c39bfdd (patch)
tree9b89b28fb65773787cda4f9476c3913cc213163a /mkfs
parentb54d026f982a9f6c62d3276908a3fbc3cc628a9d (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkfs')
-rw-r--r--mkfs/options.c5
1 files changed, 4 insertions, 1 deletions
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':