mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
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>
This commit is contained in:
parent
5f9468cebf
commit
cc9f2f8f68
2 changed files with 3 additions and 2 deletions
|
@ -19,7 +19,8 @@ static int my_open(struct inode *inode, struct file *file)
|
||||||
{
|
{
|
||||||
int i;
|
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++)
|
for (i = 0; i < 10; i++)
|
||||||
trace_mark(subsystem_eventb, MARK_NOARGS);
|
trace_mark(subsystem_eventb, MARK_NOARGS);
|
||||||
return -EPERM;
|
return -EPERM;
|
||||||
|
|
|
@ -53,7 +53,7 @@ void probe_subsystem_eventb(const struct marker *mdata, void *private,
|
||||||
static struct probe_data probe_array[] =
|
static struct probe_data probe_array[] =
|
||||||
{
|
{
|
||||||
{ .name = "subsystem_event",
|
{ .name = "subsystem_event",
|
||||||
.format = "%d %s",
|
.format = "integer %d string %s",
|
||||||
.probe_func = probe_subsystem_event },
|
.probe_func = probe_subsystem_event },
|
||||||
{ .name = "subsystem_eventb",
|
{ .name = "subsystem_eventb",
|
||||||
.format = MARK_NOARGS,
|
.format = MARK_NOARGS,
|
||||||
|
|
Loading…
Reference in a new issue