diff options
-rw-r--r-- | samples/markers/marker-example.c | 3 | ||||
-rw-r--r-- | samples/markers/probe-example.c | 2 |
2 files changed, 3 insertions, 2 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; |
diff --git a/samples/markers/probe-example.c b/samples/markers/probe-example.c index 238b2e384fc8..a36797535615 100644 --- a/samples/markers/probe-example.c +++ b/samples/markers/probe-example.c | |||
@@ -53,7 +53,7 @@ void probe_subsystem_eventb(const struct marker *mdata, void *private, | |||
53 | static struct probe_data probe_array[] = | 53 | static struct probe_data probe_array[] = |
54 | { | 54 | { |
55 | { .name = "subsystem_event", | 55 | { .name = "subsystem_event", |
56 | .format = "%d %s", | 56 | .format = "integer %d string %s", |
57 | .probe_func = probe_subsystem_event }, | 57 | .probe_func = probe_subsystem_event }, |
58 | { .name = "subsystem_eventb", | 58 | { .name = "subsystem_eventb", |
59 | .format = MARK_NOARGS, | 59 | .format = MARK_NOARGS, |