]> err.no Git - linux-2.6/commitdiff
Linux Kernel Markers: fix samples to follow format string standard
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Thu, 15 Nov 2007 00:59:50 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 15 Nov 2007 02:45:40 +0000 (18:45 -0800)
Add the field names to marker example format string.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
samples/markers/marker-example.c
samples/markers/probe-example.c

index e787c6d16dd77ace5f998a3f8a17e50f57b38fe3..05e438f8b4e2d8511e69a4961cf8e35b0dbbeebd 100644 (file)
@@ -19,7 +19,8 @@ static int my_open(struct inode *inode, struct file *file)
 {
        int i;
 
-       trace_mark(subsystem_event, "%d %s", 123, "example string");
+       trace_mark(subsystem_event, "integer %d string %s", 123,
+               "example string");
        for (i = 0; i < 10; i++)
                trace_mark(subsystem_eventb, MARK_NOARGS);
        return -EPERM;
index 238b2e384fc84187e7c7d63143c02a5cb42992ce..a36797535615dc77647260f12d2496d850bd4177 100644 (file)
@@ -53,7 +53,7 @@ void probe_subsystem_eventb(const struct marker *mdata, void *private,
 static struct probe_data probe_array[] =
 {
        {       .name = "subsystem_event",
-               .format = "%d %s",
+               .format = "integer %d string %s",
                .probe_func = probe_subsystem_event },
        {       .name = "subsystem_eventb",
                .format = MARK_NOARGS,