summaryrefslogtreecommitdiffstats
path: root/runtime/string.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-05-26 07:43:25 +0000
committerhunt <hunt>2005-05-26 07:43:25 +0000
commitabedf3db3774b54ee4ed227e3ae69e55fb0ff76c (patch)
tree77bf164eda3f977ba0e964c92493ea8c248fb6f3 /runtime/string.c
parent3750373a50833fcda902407e5b260cb8c5799ad6 (diff)
downloadsystemtap-steved-abedf3db3774b54ee4ed227e3ae69e55fb0ff76c.tar.gz
systemtap-steved-abedf3db3774b54ee4ed227e3ae69e55fb0ff76c.tar.xz
systemtap-steved-abedf3db3774b54ee4ed227e3ae69e55fb0ff76c.zip
2005-05-26 Martin Hunt <hunt@redhat.com>
* current.c (_stp_sprint_regs): Implement for i386. * sym.c (_stp_symbol_sprint): Check name before trying to print it. (_stp_symbol_print): Change to macro that calls _stp_symbol_sprint().
Diffstat (limited to 'runtime/string.c')
-rw-r--r--runtime/string.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/string.c b/runtime/string.c
index 16a20dfb..f079bf89 100644
--- a/runtime/string.c
+++ b/runtime/string.c
@@ -34,7 +34,7 @@ static struct string _stp_string[STP_NUM_STRINGS][NR_CPUS];
typedef struct string *String;
/* set up a special stdout string */
-struct string __stp_stdout;
+static struct string __stp_stdout;
String _stp_stdout = &__stp_stdout;
void _stp_vsprintf (String str, const char *fmt, va_list args);
@@ -45,6 +45,7 @@ void _stp_vsprintf (String str, const char *fmt, va_list args);
* @param num Number of the preallocated String to use.
* #STP_NUM_STRINGS are statically allocated for our use. The
* translator (or author) should be sure to grab a free one.
+ * @returns An empty String.
*/
String _stp_string_init (int num)