Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288828
b: refs/heads/master
c: d6a238d
h: refs/heads/master
v: v3
  • Loading branch information
Jim Cromie authored and Greg Kroah-Hartman committed Jan 24, 2012
1 parent 0e8670a commit 367265f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ae27f86a21eb9a9e005f06b126eb88662ba4f940
refs/heads/master: d6a238d25014d0ff918410d73e2a6300bca5d1f1
11 changes: 5 additions & 6 deletions trunk/lib/dynamic_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,27 +115,26 @@ static void ddebug_change(const struct ddebug_query *query,
list_for_each_entry(dt, &ddebug_tables, link) {

/* match against the module name */
if (query->module != NULL &&
strcmp(query->module, dt->mod_name))
if (query->module && strcmp(query->module, dt->mod_name))
continue;

for (i = 0 ; i < dt->num_ddebugs ; i++) {
struct _ddebug *dp = &dt->ddebugs[i];

/* match against the source filename */
if (query->filename != NULL &&
if (query->filename &&
strcmp(query->filename, dp->filename) &&
strcmp(query->filename, basename(dp->filename)))
continue;

/* match against the function */
if (query->function != NULL &&
if (query->function &&
strcmp(query->function, dp->function))
continue;

/* match against the format */
if (query->format != NULL &&
strstr(dp->format, query->format) == NULL)
if (query->format &&
!strstr(dp->format, query->format))
continue;

/* match against the line number range */
Expand Down

0 comments on commit 367265f

Please sign in to comment.