projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ebeb136
)
ao-dumplog: Fix --remote and --channel options to actually work
author
Keith Packard
<keithp@keithp.com>
Tue, 24 Aug 2010 04:53:37 +0000
(21:53 -0700)
committer
Keith Packard
<keithp@keithp.com>
Tue, 24 Aug 2010 04:53:37 +0000
(21:53 -0700)
ao-tools/ao-dumplog/ao-dumplog.c
patch
|
blob
|
history
diff --git
a/ao-tools/ao-dumplog/ao-dumplog.c
b/ao-tools/ao-dumplog/ao-dumplog.c
index 57c432902c81151f366bb887752dd6bf8cba56ff..6d4fa5bfb0cd56a13b02f48265adcd7801288602 100644
(file)
--- a/
ao-tools/ao-dumplog/ao-dumplog.c
+++ b/
ao-tools/ao-dumplog/ao-dumplog.c
@@
-29,7
+29,7
@@
static const struct option options[] = {
{ .name = "tty", .has_arg = 1, .val = 'T' },
{ .name = "device", .has_arg = 1, .val = 'D' },
static const struct option options[] = {
{ .name = "tty", .has_arg = 1, .val = 'T' },
{ .name = "device", .has_arg = 1, .val = 'D' },
- { .name = "remote", .has_arg =
1
, .val = 'R' },
+ { .name = "remote", .has_arg =
0
, .val = 'R' },
{ .name = "channel", .has_arg = 1, .val = 'C' },
{ 0, 0, 0, 0},
};
{ .name = "channel", .has_arg = 1, .val = 'C' },
{ 0, 0, 0, 0},
};
@@
-91,7
+91,7
@@
main (int argc, char **argv)
int invalid;
char serial_line[8192];
int invalid;
char serial_line[8192];
- while ((c = getopt_long(argc, argv, "T:D:R", options, NULL)) != -1) {
+ while ((c = getopt_long(argc, argv, "T:D:
C:
R", options, NULL)) != -1) {
switch (c) {
case 'T':
tty = optarg;
switch (c) {
case 'T':
tty = optarg;