summaryrefslogtreecommitdiffstats
path: root/runtime/io.c
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-02-20 14:56:38 +0100
committerMark Wielaard <mjw@redhat.com>2009-02-20 14:56:38 +0100
commit02615365a92ca2570c1f96abc8a97674aa2ccae1 (patch)
treeebedfd91a0f6d299b39e84295e091e12c0767dc8 /runtime/io.c
parentc3bad3042df505a3470f1e20b09822a9df1d4761 (diff)
parentadc67597f327cd43d58b1d0cb740dab14a75a058 (diff)
downloadsystemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.tar.gz
systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.tar.xz
systemtap-steved-02615365a92ca2570c1f96abc8a97674aa2ccae1.zip
Merge branch 'master' into pr6866
Conflicts: ChangeLog: Removed runtime/ChangeLog: Removed runtime/sym.c: Merged runtime/task_finder.c: Merged tapset/ChangeLog: Removed testsuite/ChangeLog: Removed
Diffstat (limited to 'runtime/io.c')
-rw-r--r--runtime/io.c28
1 files changed, 5 insertions, 23 deletions
diff --git a/runtime/io.c b/runtime/io.c
index c49d86e6..8ddb53ac 100644
--- a/runtime/io.c
+++ b/runtime/io.c
@@ -1,6 +1,6 @@
/* -*- linux-c -*-
* I/O for printing warnings, errors and debug messages
- * Copyright (C) 2005-2008 Red Hat Inc.
+ * Copyright (C) 2005-2009 Red Hat Inc.
*
* This file is part of systemtap, and is free software. You can
* redistribute it and/or modify it under the terms of the GNU General
@@ -56,24 +56,6 @@ static void _stp_vlog (enum code type, const char *func, int line, const char *f
put_cpu();
}
-/** Logs Data.
- * This function sends the message immediately to staprun. It
- * will also be sent over the bulk transport (relayfs) if it is
- * being used. If the last character is not a newline, then one
- * is added. This function is not as efficient as _stp_printf()
- * and should only be used for urgent messages. You probably want
- * dbug(), or _stp_warn().
- * @param fmt A variable number of args.
- * @todo Evaluate if this function is necessary.
- */
-void _stp_log (const char *fmt, ...)
-{
- va_list args;
- va_start(args, fmt);
- _stp_vlog (INFO, NULL, 0, fmt, args);
- va_end(args);
-}
-
/** Prints warning.
* This function sends a warning message immediately to staprun. It
* will also be sent over the bulk transport (relayfs) if it is
@@ -81,7 +63,7 @@ void _stp_log (const char *fmt, ...)
* is added.
* @param fmt A variable number of args.
*/
-void _stp_warn (const char *fmt, ...)
+static void _stp_warn (const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
@@ -97,7 +79,7 @@ void _stp_warn (const char *fmt, ...)
* call. You should probably call return immediately after
* calling _stp_exit().
*/
-void _stp_exit (void)
+static void _stp_exit (void)
{
_stp_exit_flag = 1;
}
@@ -112,7 +94,7 @@ void _stp_exit (void)
* @param fmt A variable number of args.
* @sa _stp_exit().
*/
-void _stp_error (const char *fmt, ...)
+static void _stp_error (const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
@@ -131,7 +113,7 @@ void _stp_error (const char *fmt, ...)
* @param fmt A variable number of args.
* @sa _stp_error
*/
-void _stp_softerror (const char *fmt, ...)
+static void _stp_softerror (const char *fmt, ...)
{
va_list args;
va_start(args, fmt);