Fix vertical spacing in dmesg.c
This commit is contained in:
parent
b8d1f83437
commit
7f7189f54f
4
dmesg.c
4
dmesg.c
@ -25,15 +25,19 @@ main(int argc, char *argv[])
|
||||
n = dmesg_size();
|
||||
if (n < 0)
|
||||
eprintf("dmesg_size:");
|
||||
|
||||
buf = malloc(n);
|
||||
if (!buf)
|
||||
eprintf("malloc:");
|
||||
|
||||
n = dmesg_read(buf, n);
|
||||
if (n < 0)
|
||||
eprintf("dmesg_read:");
|
||||
|
||||
n = dmesg_show(STDOUT_FILENO, buf, n);
|
||||
if (n < 0)
|
||||
eprintf("dmesg_show:");
|
||||
|
||||
free(buf);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user