From f0b2df877c67b2755c02835dfeb5eec6dd3d1d8c Mon Sep 17 00:00:00 2001 From: John Kacur Date: Thu, 14 Aug 2014 16:22:11 +0200 Subject: 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 cc: Carsten Emde , Thomas Gleixner , Clark Williams Since I didn't receive any replies, I'm assumin there are no objections Signed-off-by: John Kacur --- src/cyclictest/cyclictest.c | 8 ++++---- 1 file 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; } -- cgit 1.2.3-korg