initial checkin of new hdw-linux development cvs repository
[hdw-linux/hdw-linux.git] / packages / hackbard / sersniff / sersniff-fprintf-bug.patch
1 --- old/sersniff.c.orig Mon Oct 14 12:33:29 2002
2 +++ new/sersniff.c      Mon Oct 14 12:36:14 2002
3 @@ -228,26 +228,7 @@
4  
5  void usage()
6  {
7 -       fprintf(stderr,"sersniff v%s
8 -
9 -Usage:
10 -sersniff [-h] [-i DEV | -l PORT] [-o DEV | -c HOST:PORT] [-b BAUD] [-w USEC]
11 --h             This help
12 --x             Show hex characters instead of alpha
13 --f PRINTF_OPTS printf style options for printing hex characters 
14 -               when '-x' switch is given (default \"<%%02hX>\")
15 --i DEVICE      Port 1 device (defaults to /dev/ttyS0). Use host:port for
16 -                TCP.
17 --1 PORT1_NAME  Port 1 name to be printed (defaults to 'Port1')
18 --o DEVICE      Port 2 device (defaults to /dev/ttyS1). Use :port for TCP.
19 --2 PORT2_NAME  Port 2 name to be printed (defaults to 'Port2')
20 --b BAUD                Baud rate (Defaults to 19200)
21 --n             No port configuration (do not set BAUD or change settings)
22 --w USECS       How many microsecs to wait before reporting a delay
23 -                       (default is %d)
24 --s             Silent - don't pass data from port1 <=> port2,
25 -                       just display what we see from them.
26 -",VERSION,USEC);
27 +       fprintf(stderr,"sersniff v%s -- read manpage --\n",VERSION,USEC);
28         exit(1);
29  }
30