net: Fix uip debug hex dump format
Print two digits (0 prepended) till 0x0F. Do not print any count in the beginning of output. Change-Id: I07e8437f827604565fc8b86d81a105b3986f0a72 Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
This commit is contained in:
parent
810c510664
commit
d4380a1e40
|
@ -89,10 +89,10 @@ uip_debug_hex_dump(const unsigned char *buffer, int len)
|
|||
int i = 0;
|
||||
|
||||
while (len--) {
|
||||
if (i % 16 == 0) {
|
||||
PRINTA("%X ", i);
|
||||
}
|
||||
PRINTA("%X ", *buffer++);
|
||||
if(*buffer <= 0xf)
|
||||
PRINTA("0%X ", *buffer++);
|
||||
else
|
||||
PRINTA("%X ", *buffer++);
|
||||
|
||||
i++;
|
||||
if (i % 8 == 0) {
|
||||
|
|
Loading…
Reference in New Issue