summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-21 18:30:01 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-09-26 00:35:30 +0000
commit8319a6799ffc9d4c5e7e094b96af30cbebf89f65 (patch)
treeb77723a0bfd00f6b10900d0e26211c20a313348f /src
parent4fd6023b0383e7efa3b7b0211104a86ff5d3d4f6 (diff)
bitrev_test: don't omit last byte from test result check
The osmo_hexdump of the output in sh_chk() omitted the last byte of the returned bytes from the osmo_nibble_shift_*() functions. Determine the number of bytes from nibbles divided by two plus one for any odd nibble number. Output this number of bytes of output data. Memset the output buffer to get well-defined bytes for unwritten places. Also assert that we have enough buffer length for all nibbles. Change-Id: I011f42bca555caec0dfe8688ff1f28303fa04fad
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions