diff options
| author | Rasmus Villemoes <[email protected]> | 2015-12-08 15:25:16 +0100 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2015-12-10 13:14:56 -0500 |
| commit | 9a2fcad8dce219df6cac3db91f373080f017856a (patch) | |
| tree | 72523d992745d7ed06c35eeb4d5acbcc89a91dcb /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | f8aea701b77c26732f151aab4f0a70e62eb53d86 (diff) | |
osd: fix signed char versus %02x issue
If char is signed and one of these bytes happen to have a value outside
the ascii range, the corresponding output will consist of "ffffff"
followed by the two hex chars that were actually intended. One way to
fix it would be to change the casts to (u8*) aka
(unsigned char*), but it is much simpler (and generates smaller code)
to use the %ph extension which was created for such short hexdumps.
Signed-off-by: Rasmus Villemoes <[email protected]>
Acked-by: Boaz Harrosh <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions