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:
Ravi kumar Veeramally 2015-12-22 11:28:05 +02:00 committed by Anas Nashif
parent 810c510664
commit d4380a1e40
1 changed files with 4 additions and 4 deletions

View File

@ -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) {