aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2013-01-24 06:47:48 -0500
committerIngo Molnar <mingo@kernel.org>2013-01-24 06:47:48 -0500
commitbefddb21c845f8fb49e637997891ef97c6a869dc (patch)
tree0e7629123184f2dd50291ad6d477b894175f0f26 /lib/dynamic_debug.c
parente716efde75267eab919cdb2bef5b2cb77f305326 (diff)
parent7d1f9aeff1ee4a20b1aeb377dd0f579fe9647619 (diff)
Merge tag 'v3.8-rc4' into irq/core
Merge Linux 3.8-rc4 before pulling in new commits - we were on an old v3.7 base. Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'lib/dynamic_debug.c')
-rw-r--r--lib/dynamic_debug.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index e7f7d993357a..1db1fc660538 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -62,13 +62,6 @@ static LIST_HEAD(ddebug_tables);
62static int verbose = 0; 62static int verbose = 0;
63module_param(verbose, int, 0644); 63module_param(verbose, int, 0644);
64 64
65/* Return the last part of a pathname */
66static inline const char *basename(const char *path)
67{
68 const char *tail = strrchr(path, '/');
69 return tail ? tail+1 : path;
70}
71
72/* Return the path relative to source root */ 65/* Return the path relative to source root */
73static inline const char *trim_prefix(const char *path) 66static inline const char *trim_prefix(const char *path)
74{ 67{
@@ -154,7 +147,7 @@ static int ddebug_change(const struct ddebug_query *query,
154 /* match against the source filename */ 147 /* match against the source filename */
155 if (query->filename && 148 if (query->filename &&
156 strcmp(query->filename, dp->filename) && 149 strcmp(query->filename, dp->filename) &&
157 strcmp(query->filename, basename(dp->filename)) && 150 strcmp(query->filename, kbasename(dp->filename)) &&
158 strcmp(query->filename, trim_prefix(dp->filename))) 151 strcmp(query->filename, trim_prefix(dp->filename)))
159 continue; 152 continue;
160 153