projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: use printk_once() for wrapper warning messages
[lttng-modules.git]
/
wrapper
/
ftrace.h
diff --git
a/wrapper/ftrace.h
b/wrapper/ftrace.h
index 6fd1d55c11a391872c17360c280f936e6158b8cd..5a964387b68ea67f4e53b7dbe2eaeb7faef30033 100644
(file)
--- a/
wrapper/ftrace.h
+++ b/
wrapper/ftrace.h
@@
-43,7
+43,7
@@
int wrapper_register_ftrace_function_probe(char *glob,
if (register_ftrace_function_probe_sym) {
return register_ftrace_function_probe_sym(glob, ops, data);
} else {
if (register_ftrace_function_probe_sym) {
return register_ftrace_function_probe_sym(glob, ops, data);
} else {
- printk(KERN_WARNING "LTTng: register_ftrace_function_probe symbol lookup failed.\n");
+ printk
_once
(KERN_WARNING "LTTng: register_ftrace_function_probe symbol lookup failed.\n");
return -EINVAL;
}
}
return -EINVAL;
}
}
@@
-59,7
+59,7
@@
void wrapper_unregister_ftrace_function_probe(char *glob,
if (unregister_ftrace_function_probe_sym) {
unregister_ftrace_function_probe_sym(glob, ops, data);
} else {
if (unregister_ftrace_function_probe_sym) {
unregister_ftrace_function_probe_sym(glob, ops, data);
} else {
- printk(KERN_WARNING "LTTng: unregister_ftrace_function_probe symbol lookup failed.\n");
+ printk
_once
(KERN_WARNING "LTTng: unregister_ftrace_function_probe symbol lookup failed.\n");
WARN_ON(1);
}
}
WARN_ON(1);
}
}
This page took
0.023942 seconds
and
4
git commands to generate.