From 3e1affadc407369714d697518d8a562acd4373f7 Mon Sep 17 00:00:00 2001 From: fche Date: Thu, 14 Jul 2005 18:32:49 +0000 Subject: 2005-07-14 Frank Ch. Eigler * stpd.c (main): Pass !quiet mode to init_stp(). * librelay.c (init_relayfs): Be quiet if !print_totals. --- runtime/stpd/ChangeLog | 5 +++++ runtime/stpd/librelay.c | 5 +++-- runtime/stpd/stpd.c | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'runtime/stpd') diff --git a/runtime/stpd/ChangeLog b/runtime/stpd/ChangeLog index 87df2532..9a13ffc9 100644 --- a/runtime/stpd/ChangeLog +++ b/runtime/stpd/ChangeLog @@ -1,3 +1,8 @@ +2005-07-14 Frank Ch. Eigler + + * stpd.c (main): Pass !quiet mode to init_stp(). + * librelay.c (init_relayfs): Be quiet if !print_totals. + 2005-07-13 Martin Hunt * stpd.c (usage): Fix usage string. diff --git a/runtime/stpd/librelay.c b/runtime/stpd/librelay.c index 4538d741..d7b104d0 100644 --- a/runtime/stpd/librelay.c +++ b/runtime/stpd/librelay.c @@ -437,8 +437,9 @@ int init_relayfs(void) } } - printf("Using channel with %u sub-buffers of size %u.\n", - params.n_subbufs, params.subbuf_size); + if (print_totals) + printf("Using channel with %u sub-buffers of size %u.\n", + params.n_subbufs, params.subbuf_size); return 0; err: diff --git a/runtime/stpd/stpd.c b/runtime/stpd/stpd.c index a551fcb0..eef662ae 100644 --- a/runtime/stpd/stpd.c +++ b/runtime/stpd/stpd.c @@ -81,7 +81,7 @@ int main(int argc, char **argv) } sprintf(stpd_filebase, "/mnt/relay/%d/cpu", getpid()); - if (init_stp(modname, stpd_filebase, 1)) { + if (init_stp(modname, stpd_filebase, !quiet)) { fprintf(stderr, "Couldn't initialize stpd. Exiting.\n"); exit(1); } -- cgit