diff options
author | hunt <hunt> | 2005-03-09 21:30:05 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-03-09 21:30:05 +0000 |
commit | 204b456c7c08bc40ffe1f21575461d92a544e92b (patch) | |
tree | d4eeb73b11437d723be1e91e0a431f2bd3bed025 /runtime/io.c | |
parent | 67b4cc78da121e708a21e96786cb373201e4f6ff (diff) | |
download | systemtap-steved-204b456c7c08bc40ffe1f21575461d92a544e92b.tar.gz systemtap-steved-204b456c7c08bc40ffe1f21575461d92a544e92b.tar.xz systemtap-steved-204b456c7c08bc40ffe1f21575461d92a544e92b.zip |
Initial runtime checkin.
Diffstat (limited to 'runtime/io.c')
-rw-r--r-- | runtime/io.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/io.c b/runtime/io.c new file mode 100644 index 00000000..3371df16 --- /dev/null +++ b/runtime/io.c @@ -0,0 +1,19 @@ +/** Logs data. + * This function is compatible with printk. In fact it currently + * sends all output to vprintk, after sending "STP: ". This allows + * us to easily detect SystemTap output in the log file. + * + * @param fmt A variable number of args. + * @bug Lines are limited in length by printk buffer. + * @todo Needs replaced with something much faster that does not + * use the system log. + */ +void dlog (const char *fmt, ...) +{ + va_list args; + printk("STP: "); + va_start(args, fmt); + vprintk(fmt, args); + va_end(args); +} + |