cosmetic changes
This commit is contained in:
parent
49a793736c
commit
0fa695f3de
1 changed files with 3 additions and 0 deletions
|
@ -30,13 +30,16 @@ inline int isprint(unsigned char e)
|
||||||
void hex_dump(unsigned n, const unsigned char *buf)
|
void hex_dump(unsigned n, const unsigned char *buf)
|
||||||
{
|
{
|
||||||
int on_this_line = 0;
|
int on_this_line = 0;
|
||||||
|
|
||||||
while (n-- > 0)
|
while (n-- > 0)
|
||||||
{
|
{
|
||||||
kprintf("%02X ", *buf++);
|
kprintf("%02X ", *buf++);
|
||||||
on_this_line += 1;
|
on_this_line += 1;
|
||||||
|
|
||||||
if (on_this_line == 16 || n == 0)
|
if (on_this_line == 16 || n == 0)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
kputs(" ");
|
kputs(" ");
|
||||||
for (i = on_this_line; i < 16; i++)
|
for (i = on_this_line; i < 16; i++)
|
||||||
kputs(" ");
|
kputs(" ");
|
||||||
|
|
Loading…
Add table
Reference in a new issue