]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
add in the -f (file) option - man page claims this is supported, but in reality it...
authorNathan Scott <nathans@sgi.com>
Wed, 17 Oct 2001 07:30:46 +0000 (07:30 +0000)
committerNathan Scott <nathans@sgi.com>
Wed, 17 Oct 2001 07:30:46 +0000 (07:30 +0000)
logprint/logprint.c

index 50025813ad1d01a0d164cf6368b9365421e6b1e2..18aad49bd43839d7165960a649908180ff4d44f2 100644 (file)
@@ -52,6 +52,7 @@ usage(void)
        fprintf(stderr, "Usage: %s [options...] <device>\n\n\
 Options:\n\
     -c             try to continue if error found in log\n\
+    -f             specified device is actually a file\n\
     -l <device>     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;