diff options
author | John Kacur <jkacur@redhat.com> | 2014-08-14 16:22:11 +0200 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2014-08-14 16:22:11 +0200 |
commit | f0b2df877c67b2755c02835dfeb5eec6dd3d1d8c (patch) | |
tree | 01fbddcfa80c6f24baf7947febf2454dc2edb1a1 | |
parent | 4b430a76785d630e399e60466fdc66cec3a74805 (diff) | |
download | rt-tests-f0b2df877c67b2755c02835dfeb5eec6dd3d1d8c.tar.gz |
cyclictest: Change the output from function sighand() to stderr
cyclictest can be run from other tools such as rteval
in order to get current status on long runs, SIGUSR1 is sent to
cyclictest and caught by function sighand()
This creates difficulties for rteval when parsing cyclictest output, so
change the output to stderr.
Note, a RFC was sent out on Apr.15 2014 entitled
"RFC: SIGUSR1 to stderr"
to: RT <linux-rt-users@vger.kernel.org>
cc: Carsten Emde <C.Emde@osadl.org>,
Thomas Gleixner <tglx@linutronix.de>,
Clark Williams <williams@redhat.com>
Since I didn't receive any replies, I'm assumin there are no objections
Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r-- | src/cyclictest/cyclictest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c index 64f1764..ad7890f 100644 --- a/src/cyclictest/cyclictest.c +++ b/src/cyclictest/cyclictest.c @@ -1569,11 +1569,11 @@ static void sighand(int sig) int oldquiet = quiet; quiet = 0; - printf("#---------------------------\n"); - printf("# cyclictest current status:\n"); + fprintf(stderr, "#---------------------------\n"); + fprintf(stderr, "# cyclictest current status:\n"); for (i = 0; i < num_threads; i++) - print_stat(stdout, parameters[i], i, 0, 0); - printf("#---------------------------\n"); + print_stat(stderr, parameters[i], i, 0, 0); + fprintf(stderr, "#---------------------------\n"); quiet = oldquiet; return; } |