diff options
author | Chen Gong <gong.chen@linux.intel.com> | 2011-05-19 08:49:35 -0700 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2011-05-19 08:49:35 -0700 |
commit | c65dd48ed4b0c7f377483fd576ec0295555ad86d (patch) | |
tree | 7f1333a88d4f2516d4d7ffeee20a336cd32fd74b | |
parent | b1d648e2bb1316b7bfc3423cd3e0ab4d0b0876f2 (diff) | |
download | mce-test-c65dd48ed4b0c7f377483fd576ec0295555ad86d.tar.gz |
minor fixes for erst test
1) in the last patch after update makefile rule, I forget to update
corresponding shell script. And the shell script mode attribute is
not correct, too
2) update erst-inject tool to provide more friendly prompt
Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rw-r--r-- | tsrc/erst-inj/erst-inject.c | 6 | ||||
-rwxr-xr-x[-rw-r--r--] | tsrc/erst-inject.sh | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tsrc/erst-inj/erst-inject.c b/tsrc/erst-inj/erst-inject.c index 3610f61..fa3a88b 100644 --- a/tsrc/erst-inj/erst-inject.c +++ b/tsrc/erst-inj/erst-inject.c @@ -179,6 +179,7 @@ enum { ERST_POLL, ERST_CLEAR, ERST_COUNT, + ERST_MAX = 255 }; void usage() @@ -198,7 +199,7 @@ void usage() int main(int argc, char *argv[]) { int fd; - int todo = ERST_COUNT; + int todo = ERST_MAX; int opt; u64 record_id = 0x12345678; u32 record_count; @@ -243,6 +244,9 @@ int main(int argc, char *argv[]) case ERST_COUNT: get_record_count(fd, &record_count); break; + case ERST_MAX: + usage(); + break; } close(fd); diff --git a/tsrc/erst-inject.sh b/tsrc/erst-inject.sh index c22ff7a..f078993 100644..100755 --- a/tsrc/erst-inject.sh +++ b/tsrc/erst-inject.sh @@ -45,7 +45,7 @@ ID=0xdeadbeaf -ERST=./erst-inj/erst-inject +ERST=./erst-inject LOG=./erst.log MODSTATUS=0 |