aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDaniel Verkamp <[email protected]>2018-04-12 09:16:13 -0600
committerJens Axboe <[email protected]>2018-04-12 09:58:27 -0600
commitc73996984902516745bc587d5e8a0b2e034aea05 (patch)
treeec639511266b10b966d413891998586c7d539ef3 /tools/perf/scripts/python/export-to-postgresql.py
parentfd92c77f58257ae5eb5180afe36e86094e4910f6 (diff)
nvmet: fix space padding in serial number
Commit 42de82a8b544 previously attempted to fix this, and it did correctly pad the MN and FR fields with spaces, but the SN field still contains 0 bytes. The current code fills out the first 16 bytes with hex2bin, leaving the last 4 bytes zeroed. Rather than adding a lot of error-prone math to avoid overwriting SN twice, just set the whole thing to spaces up front (it's only 20 bytes). Fixes: 42de82a8b544 ("nvmet: don't report 0-bytes in serial number") Signed-off-by: Daniel Verkamp <[email protected]> Reviewed-by: Martin Wilck <[email protected]> Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions