diff options
author | Alexandru Ardelean <[email protected]> | 2020-02-20 20:04:21 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2020-02-21 11:22:15 -0800 |
commit | c11d3fa0116a6bc832a9e387427caa16f8de5ef2 (patch) | |
tree | 8efee1cd0afd84cb0dbd76db4a8b5047ea1a9689 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 75866af62b439859d5146b7093ceb6b482852683 (diff) |
lib/string.c: update match_string() doc-strings with correct behavior
There were a few attempts at changing behavior of the match_string()
helpers (i.e. 'match_string()' & 'sysfs_match_string()'), to change &
extend the behavior according to the doc-string.
But the simplest approach is to just fix the doc-strings. The current
behavior is fine as-is, and some bugs were introduced trying to fix it.
As for extending the behavior, new helpers can always be introduced if
needed.
The match_string() helpers behave more like 'strncmp()' in the sense
that they go up to n elements or until the first NULL element in the
array of strings.
This change updates the doc-strings with this info.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexandru Ardelean <[email protected]>
Acked-by: Andy Shevchenko <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: "Tobin C . Harding" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions