diff options
-rw-r--r-- | src/ftcat.c | 4 | ||||
-rw-r--r-- | src/timestamp.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ftcat.c b/src/ftcat.c index b317cba..f1a269f 100644 --- a/src/ftcat.c +++ b/src/ftcat.c | |||
@@ -54,9 +54,7 @@ static void cat2stdout(int fd) | |||
54 | static void usage(void) | 54 | static void usage(void) |
55 | { | 55 | { |
56 | fprintf(stderr, | 56 | fprintf(stderr, |
57 | "Usage: ftcat <ft device> TS1 TS2 ....\n\n" | 57 | "Usage: ftcat <ft device> TS1 TS2 ...." |
58 | // "where TS1, TS2, ... is one of " | ||
59 | // " sched, tick, plug_tick, plug_sche" | ||
60 | "\n"); | 58 | "\n"); |
61 | exit(1); | 59 | exit(1); |
62 | } | 60 | } |
diff --git a/src/timestamp.c b/src/timestamp.c index 1df252a..f3f7861 100644 --- a/src/timestamp.c +++ b/src/timestamp.c | |||
@@ -1,3 +1,4 @@ | |||
1 | #include <stdio.h> | ||
1 | #include <string.h> | 2 | #include <string.h> |
2 | 3 | ||
3 | #include "timestamp.h" | 4 | #include "timestamp.h" |
@@ -46,7 +47,8 @@ int str2event(const char* str, cmd_t *id) | |||
46 | *id = event_table[i].id; | 47 | *id = event_table[i].id; |
47 | return 1; | 48 | return 1; |
48 | } | 49 | } |
49 | return 0; | 50 | /* try to parse it as a number */ |
51 | return sscanf(str, "%u", id); | ||
50 | } | 52 | } |
51 | 53 | ||
52 | const char* event2str(cmd_t id) | 54 | const char* event2str(cmd_t id) |