diff options
author | Ben Gardner <gardner.ben@gmail.com> | 2015-11-19 11:43:05 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2015-11-21 03:41:53 +0100 |
commit | b50d8fbb6e769df782d5bc3c156cb82d3f646e86 (patch) | |
tree | ca34bdef82b95811765a79d4dfde2447ab903542 /src/lib/compute_ip_checksum.c | |
parent | 2d3d1b7eee52bca47ab08730be99336c021d0f7c (diff) |
hexdump: Fix output if length is not a multiple of 16
hexdump currently rounds up length to a multiple of 16.
So, hexdump(ptr, 12) prints 16 hex digits, including 4 garbage bytes.
That isn't desirable and is easy to fix.
Change-Id: I86415fa9bc6cdc84b111e5e1968e39f570f294d9
Signed-off-by: Ben Gardner <gardner.ben@gmail.com>
Reviewed-on: http://review.coreboot.org/12486
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/lib/compute_ip_checksum.c')
0 files changed, 0 insertions, 0 deletions