summaryrefslogtreecommitdiffstats
path: root/runtime/autoconf-trace-printk.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/autoconf-trace-printk.c')
-rw-r--r--runtime/autoconf-trace-printk.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/autoconf-trace-printk.c b/runtime/autoconf-trace-printk.c
new file mode 100644
index 00000000..8330a58a
--- /dev/null
+++ b/runtime/autoconf-trace-printk.c
@@ -0,0 +1,8 @@
+#include <linux/kernel.h>
+
+int bar (void) {
+ static char *fmt = "%s\n";
+ trace_printk (fmt, "hello world");
+ return 0;
+}
+