summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2011-05-13 12:52:48 +0200
committerJohn Kacur <jkacur@redhat.com>2011-05-13 12:52:48 +0200
commitf26dbd8adcc7f9888d06a4963e8fe9e1ca497a15 (patch)
tree708c1907b4bb9b61827908df4cada8a5513c4299
parent81da016fb0f6ab0511fbec81fc8ba1a50398a20d (diff)
downloadrt-tests-f26dbd8adcc7f9888d06a4963e8fe9e1ca497a15.tar.gz
Minor Fix-ups
1. Make the function header style consistent with the rest of cyclictest. 2. Spelling clean-ups. Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--src/cyclictest/cyclictest.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index 29d0fe5..3227acd 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -313,9 +313,7 @@ void traceopt(char *option)
traceptr[traceopt_count++] = ptr;
}
-
-static int
-trace_file_exists(char *name)
+static int trace_file_exists(char *name)
{
struct stat sbuf;
char *tracing_prefix = get_debugfileprefix();
@@ -1030,7 +1028,7 @@ static void process_options (int argc, char *argv[])
setaffinity = AFFINITY_USEALL;
use_nanosleep = MODE_CLOCK_NANOSLEEP;
#else
- warn("cyclicteset was not built with the numa option\n");
+ warn("cyclictest was not built with the numa option\n");
warn("ignoring --numa or -U\n");
#endif
break;
@@ -1187,11 +1185,11 @@ static void print_hist(struct thread_param *par[], int nthreads)
if (histofall && nthreads > 1)
printf(" %09llu", log_entries[nthreads]);
printf("\n");
- printf("# Min Latencys:");
+ printf("# Min Latencies:");
for (j = 0; j < nthreads; j++)
printf(" %05lu", par[j]->stats->min);
printf("\n");
- printf("# Avg Latencys:");
+ printf("# Avg Latencies:");
for (j = 0; j < nthreads; j++)
printf(" %05lu", par[j]->stats->cycles ?
(long)(par[j]->stats->avg/par[j]->stats->cycles) : 0);