adde newline to hexdumpf

This commit is contained in:
matthias.ringwald@gmail.com 2014-12-12 11:07:20 +00:00
parent 1657dbb210
commit c64a10eb40

View File

@ -160,13 +160,13 @@ void hexdumpf(const void *data, int size){
buffer[j++] = ' ';
if (j >= 6*16 ){
buffer[j] = 0;
printf("%s", buffer);
printf("%s\n", buffer);
j = 0;
}
}
if (j != 0){
buffer[j] = 0;
printf("%s", buffer);
printf("%s\n", buffer);
}
}