summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfche <fche>2005-07-14 18:32:49 +0000
committerfche <fche>2005-07-14 18:32:49 +0000
commit3e1affadc407369714d697518d8a562acd4373f7 (patch)
treefac56803fb20457b9589f9fdcf0754a40ac6112a
parentfe44201854bc9258128de32bed4e31017723c04c (diff)
downloadsystemtap-steved-3e1affadc407369714d697518d8a562acd4373f7.tar.gz
systemtap-steved-3e1affadc407369714d697518d8a562acd4373f7.tar.xz
systemtap-steved-3e1affadc407369714d697518d8a562acd4373f7.zip
2005-07-14 Frank Ch. Eigler <fche@redhat.com>
* stpd.c (main): Pass !quiet mode to init_stp(). * librelay.c (init_relayfs): Be quiet if !print_totals.
-rw-r--r--runtime/stpd/ChangeLog5
-rw-r--r--runtime/stpd/librelay.c5
-rw-r--r--runtime/stpd/stpd.c2
3 files changed, 9 insertions, 3 deletions
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 <fche@redhat.com>
+
+ * stpd.c (main): Pass !quiet mode to init_stp().
+ * librelay.c (init_relayfs): Be quiet if !print_totals.
+
2005-07-13 Martin Hunt <hunt@redhat.com>
* 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);
}