eal: align hexdump output
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 2 Apr 2019 15:23:50 +0000 (08:23 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 3 Apr 2019 16:34:59 +0000 (18:34 +0200)
commitd0885cb7815f517f04794fea0e25f1a1bd3b2b1e
tree7d562f13f9bc3609af0ee5ab0efa6cb8798064f0
parent779d9d0986cf8b1dbefaca223dab3dd661283a97
eal: align hexdump output

This fixes the issue where if the length of the output is not
a multiple of 16 the formatting was off.

Before:
00000000: 45 00 00 1C 12 34 2C E0 40 06 B8 2E C0 A8 01 12 | E....4,.@.......
00000010: C0 A8 01 37 |  |  |  |  |  |  |  |  |  |  |  |  | ...7

After:
00000000: 45 00 00 1C 12 34 2C E0 40 06 B8 2E C0 A8 01 12 | E....4,.@.......
00000010: C0 A8 01 37                                     | ...7

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_eal/common/eal_common_hexdump.c