aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern B. Brandenburg <bbb@cs.unc.edu>2008-09-24 23:26:50 -0400
committerBjoern B. Brandenburg <bbb@cs.unc.edu>2008-09-24 23:26:50 -0400
commit1c6aeb0448af8712ad5ca8a695351d397bc1e0ce (patch)
treee5967cc40750ac33f1328c12e6cc070dc5176d8f
parentc52d7ab471d62b32836617fce06c0946d08ecb09 (diff)
parent956ffd54dda4da2f6d7c0963fda54a6be95f1c4f (diff)
Merge branch 'master' of ssh://cvs/cvs/proj/litmus/repo/ft_tools
-rw-r--r--src/ftcat.c4
-rw-r--r--src/timestamp.c4
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)
54static void usage(void) 54static 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
52const char* event2str(cmd_t id) 54const char* event2str(cmd_t id)