diff options
author | Andy Shevchenko <[email protected]> | 2015-02-12 15:02:29 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-02-12 18:54:15 -0800 |
commit | 114fc1afb2de7dec40da137dc2a55cd38fc220f2 (patch) | |
tree | 414c7731a5a4743cbdba6583a1b79f3723ec190d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5d909c8d54b114eddb7c50506f03bf7309a9192e (diff) |
hexdump: make it return number of bytes placed in buffer
This patch makes hexdump return the number of bytes placed in the buffer
excluding trailing NUL. In the case of overflow it returns the desired
amount of bytes to produce the entire dump. Thus, it mimics snprintf().
This will be useful for users that would like to repeat with a bigger
buffer.
[[email protected]: fix printk warning]
Signed-off-by: Andy Shevchenko <[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-postgresql.py')
0 files changed, 0 insertions, 0 deletions