diff options
author | Steven Rostedt (VMware) <[email protected]> | 2018-12-21 23:10:26 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2018-12-22 22:52:30 -0500 |
commit | 3d739c1f6156c70eb0548aa288dcfbac9e0bd162 (patch) | |
tree | 4f2ae9eccd5478a2689171c8ce2c6466d4b9c247 /arch/sh/kernel/dumpstack.c | |
parent | 036876fa56204ae0fa59045bd6bbb2691a060633 (diff) |
tracing: Use the return of str_has_prefix() to remove open coded numbers
There are several locations that compare constants to the beginning of
string variables to determine what commands should be done, then the
constant length is used to index into the string. This is error prone as the
hard coded numbers have to match the size of the constants. Instead, use the
len returned from str_has_prefix() and remove the open coded string length
sizes.
Cc: Joe Perches <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]> (for trace_probe part)
Acked-by: Namhyung Kim <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'arch/sh/kernel/dumpstack.c')
0 files changed, 0 insertions, 0 deletions