From 4f15498395b178b6134549da91ce72d1c53eaea7 Mon Sep 17 00:00:00 2001 From: Stefan Pöschel Date: Wed, 23 Aug 2017 17:19:41 +0200 Subject: Print used PAD length to log --- src/odr-padenc.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/odr-padenc.cpp') diff --git a/src/odr-padenc.cpp b/src/odr-padenc.cpp index cde6ca9..d42d688 100644 --- a/src/odr-padenc.cpp +++ b/src/odr-padenc.cpp @@ -65,7 +65,7 @@ static void usage(const char* name) { " Default: %s\n" " -t, --dls=FILENAME FIFO or file to read DLS text from.\n" " If specified more than once, use next file after DELAY seconds.\n" - " -p, --pad=LENGTH Set the pad length.\n" + " -p, --pad=LENGTH Set the PAD length.\n" " Possible values: %s\n" " Default: %zu\n" " -c, --charset=ID ID of the character set encoding used for DLS text input.\n" @@ -171,16 +171,16 @@ int main(int argc, char *argv[]) { } if (options.sls_dir && not options.dls_files.empty()) { - fprintf(stderr, "ODR-PadEnc encoding Slideshow from '%s' and DLS from %s to '%s'\n", - options.sls_dir, list_dls_files(options.dls_files).c_str(), options.output); + fprintf(stderr, "ODR-PadEnc encoding Slideshow from '%s' and DLS from %s to '%s' (PAD length: %zu)\n", + options.sls_dir, list_dls_files(options.dls_files).c_str(), options.output, options.padlen); } else if (options.sls_dir) { - fprintf(stderr, "ODR-PadEnc encoding Slideshow from '%s' to '%s'. No DLS.\n", - options.sls_dir, options.output); + fprintf(stderr, "ODR-PadEnc encoding Slideshow from '%s' to '%s' (PAD length: %zu). No DLS.\n", + options.sls_dir, options.output, options.padlen); } else if (not options.dls_files.empty()) { - fprintf(stderr, "ODR-PadEnc encoding DLS from %s to '%s'. No Slideshow.\n", - list_dls_files(options.dls_files).c_str(), options.output); + fprintf(stderr, "ODR-PadEnc encoding DLS from %s to '%s' (PAD length: %zu). No Slideshow.\n", + list_dls_files(options.dls_files).c_str(), options.output, options.padlen); } else { fprintf(stderr, "ODR-PadEnc Error: Neither DLS nor Slideshow to encode !\n"); -- cgit v1.2.3