update
[lttv.git] / markers-userspace / marker-lib.c
index c13c9eec194fd7154151f4736cf75115422fc63a..b2165b8b7ac542a86f4da1399a1be0c0a6bda1b1 100644 (file)
@@ -39,9 +39,13 @@ __attribute__ ((visibility ("protected")))
 void marker_probe_cb(const struct marker *mdata, void *call_private,
        const char *fmt, ...)
 {
-       static unsigned int count = 0;
+       char buf[PAGE_SIZE];
+       va_list ap;
 
-       printf("Test probe function %u\n", count++);
+       va_start(ap, fmt);
+       vsnprintf(buf, PAGE_SIZE-1, fmt, ap);
+       sys_trace(0, 0, buf);
+       va_end(ap);
 }
 
 //FIXME : imv_read won't work with optimized immediate values.
This page took 0.023014 seconds and 4 git commands to generate.