mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
dyndbg: show both old and new in change-info
print "old => new" flag values to the info("change") message. no functional change. Acked-by: Jason Baron <jbaron@akamai.com> Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Link: https://lore.kernel.org/r/20220904214134.408619-4-jim.cromie@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
85d6b66d31
commit
bfa3ca448e
@@ -156,7 +156,7 @@ static int ddebug_change(const struct ddebug_query *query,
|
||||
struct ddebug_table *dt;
|
||||
unsigned int newflags;
|
||||
unsigned int nfound = 0;
|
||||
struct flagsbuf fbuf;
|
||||
struct flagsbuf fbuf, nbuf;
|
||||
|
||||
/* search for matching ddebugs */
|
||||
mutex_lock(&ddebug_lock);
|
||||
@@ -217,11 +217,12 @@ static int ddebug_change(const struct ddebug_query *query,
|
||||
static_branch_enable(&dp->key.dd_key_true);
|
||||
}
|
||||
#endif
|
||||
v4pr_info("changed %s:%d [%s]%s %s => %s\n",
|
||||
trim_prefix(dp->filename), dp->lineno,
|
||||
dt->mod_name, dp->function,
|
||||
ddebug_describe_flags(dp->flags, &fbuf),
|
||||
ddebug_describe_flags(newflags, &nbuf));
|
||||
dp->flags = newflags;
|
||||
v4pr_info("changed %s:%d [%s]%s =%s\n",
|
||||
trim_prefix(dp->filename), dp->lineno,
|
||||
dt->mod_name, dp->function,
|
||||
ddebug_describe_flags(dp->flags, &fbuf));
|
||||
}
|
||||
}
|
||||
mutex_unlock(&ddebug_lock);
|
||||
|
Reference in New Issue
Block a user