diff options
author | Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> | 2007-11-14 19:59:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-11-14 21:45:40 -0500 |
commit | cc9f2f8f68efcc73d8793a4df2c4c50196e90080 (patch) | |
tree | 7da05db63c83c8e9b05fc9d75e64b229bc6a7fb4 /samples/markers/marker-example.c | |
parent | 5f9468cebfdb7b809139e7682d388f9c31297936 (diff) |
Linux Kernel Markers: fix samples to follow format string standard
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>
Diffstat (limited to 'samples/markers/marker-example.c')
-rw-r--r-- | samples/markers/marker-example.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/markers/marker-example.c b/samples/markers/marker-example.c index e787c6d16dd7..05e438f8b4e2 100644 --- a/samples/markers/marker-example.c +++ b/samples/markers/marker-example.c | |||
@@ -19,7 +19,8 @@ static int my_open(struct inode *inode, struct file *file) | |||
19 | { | 19 | { |
20 | int i; | 20 | int i; |
21 | 21 | ||
22 | trace_mark(subsystem_event, "%d %s", 123, "example string"); | 22 | trace_mark(subsystem_event, "integer %d string %s", 123, |
23 | "example string"); | ||
23 | for (i = 0; i < 10; i++) | 24 | for (i = 0; i < 10; i++) |
24 | trace_mark(subsystem_eventb, MARK_NOARGS); | 25 | trace_mark(subsystem_eventb, MARK_NOARGS); |
25 | return -EPERM; | 26 | return -EPERM; |