projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c43e55
)
tracing: Use pr_warn_once instead of open coded implementation
author
zhangwei(Jovi)
<jovi.zhangwei@huawei.com>
Mon, 11 Mar 2013 07:13:29 +0000
(15:13 +0800)
committer
Steven Rostedt
<rostedt@goodmis.org>
Fri, 15 Mar 2013 17:22:05 +0000
(13:22 -0400)
Use pr_warn_once, instead of making an open coded implementation.
Link:
http://lkml.kernel.org/r/513D8419.20400@huawei.com
Signed-off-by: zhangwei(Jovi) <jovi.zhangwei@huawei.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/trace.c
b/kernel/trace/trace.c
index 7f0e7fa6d62cf7c9d1f04cd818968f0454e2707a..bba1ba958ee8dfc235e7015c6833dc5f26969485 100644
(file)
--- a/
kernel/trace/trace.c
+++ b/
kernel/trace/trace.c
@@
-5205,8
+5205,6
@@
static inline int register_snapshot_cmd(void) { return 0; }
struct dentry *tracing_init_dentry_tr(struct trace_array *tr)
{
- static int once;
-
if (tr->dir)
return tr->dir;
@@
-5216,11
+5214,8
@@
struct dentry *tracing_init_dentry_tr(struct trace_array *tr)
if (tr->flags & TRACE_ARRAY_FL_GLOBAL)
tr->dir = debugfs_create_dir("tracing", NULL);
- if (!tr->dir && !once) {
- once = 1;
- pr_warning("Could not create debugfs directory 'tracing'\n");
- return NULL;
- }
+ if (!tr->dir)
+ pr_warn_once("Could not create debugfs directory 'tracing'\n");
return tr->dir;
}
This page took
0.027477 seconds
and
5
git commands to generate.