From: Nathan Scott Date: Wed, 17 Oct 2001 07:30:46 +0000 (+0000) Subject: add in the -f (file) option - man page claims this is supported, but in reality it... X-Git-Tag: v2.0.0~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49d4ff1300b20c4ffc0d67f5e41c8bfc1d716266;p=thirdparty%2Fxfsprogs-dev.git add in the -f (file) option - man page claims this is supported, but in reality it was not. --- diff --git a/logprint/logprint.c b/logprint/logprint.c index 50025813a..18aad49bd 100644 --- a/logprint/logprint.c +++ b/logprint/logprint.c @@ -52,6 +52,7 @@ usage(void) fprintf(stderr, "Usage: %s [options...] \n\n\ Options:\n\ -c try to continue if error found in log\n\ + -f specified device is actually a file\n\ -l filename of external log\n\ -n don't try and interpret log data\n\ -o print buffer data in hex\n\ @@ -129,7 +130,7 @@ main(int argc, char **argv) xlog_t log = {0}; progname = basename(argv[0]); - while ((c = getopt(argc, argv, "bel:iqnors:tDVvc")) != EOF) { + while ((c = getopt(argc, argv, "befl:iqnors:tDVvc")) != EOF) { switch (c) { case 'D': { print_only_data++; @@ -140,6 +141,10 @@ main(int argc, char **argv) print_buffer++; break; } + case 'f': { + x.disfile = 1; + break; + } case 'l': { x.logname = optarg; x.lisfile = 1;