initial checkin of new hdw-linux development cvs repository
[hdw-linux/hdw-linux.git] / packages / hackbard / lphdisk / usage.patch
1 --- ./lphdisk.c.orig    2003-10-21 15:10:41.000000000 +0200
2 +++ ./lphdisk.c 2003-10-21 15:14:13.000000000 +0200
3 @@ -718,22 +718,7 @@
4    {"force",     0, 0, 'f'},
5  {0,0,0,0}};
6  
7 -const char usage_string[] = "\
8 -Usage: %1$s [options] [device]
9 -Prepare a hibernation partition for APM suspend-to-disk.
10 -
11 -options:
12 -  -h, --help       Display brief usage and option information (this screen)
13 -  -p, --probeonly  Only calculate and display required size, do not format
14 -  -q, --quiet      Turn off informational messages, useful for scripts
15 -  -d, --debug      Turn on (verbose) debugging messages
16 -  -n, --nowrite    Do not actually write to the disk
17 -  -f, --force      **DANGEROUS**  Format without regard to potential problems
18 -
19 -'device' should be a raw disk device (not a partition).  The default device
20 -is /dev/hda.
21 -
22 -(%2$s)\n\n";
23 +const char usage_string[] = "Usage: %1$s [options] [device]\nPrepare a hibernation partition for APM suspend-to-disk.\n\n\noptions:\n  -h, --help       Display brief usage and option information (this screen)\n -p, --probeonly  Only calculate and display required size, do not format\n  -q, --quiet      Turn off informational messages, useful for scripts\n  -d, --debug      Turn on (verbose) debugging messages\n  -n, --nowrite    Do not actually write to the disk\n  -f, --force      **DANGEROUS**  Format without regard to potential problemsnn'device' should be a raw disk device (not a partition).  The default devicenis /dev/hda.\n\n(%2$s)\n\n";
24  
25  void print_usage (void) {
26    char *progname = rindex(argv0, '/');