diff options
| author | Rasmus Villemoes <[email protected]> | 2015-04-16 12:44:56 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2015-04-17 09:03:59 -0400 |
| commit | 6ceafb880c218a14e0cf8d08499138a1a9775fb2 (patch) | |
| tree | 19131ae8840571d482040ba266c95b3862628a4a /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | e0df7e1faebad9a7ac0931d03f86fcd5c0d1896e (diff) | |
fs/binfmt_misc.c: simplify entry_status()
sprintf() reliably returns the number of characters printed, so we don't
need to ask strlen() where we are. Also replace calling sprintf("%02x")
in a loop with the much simpler bin2hex().
[[email protected]: it's odd to include kernel.h after everything else]
Signed-off-by: Rasmus Villemoes <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions