summaryrefslogtreecommitdiffstats
path: root/util/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/debug.c')
-rw-r--r--util/debug.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/util/debug.c b/util/debug.c
index 7a1e259..bfc8129 100644
--- a/util/debug.c
+++ b/util/debug.c
@@ -1,13 +1,12 @@
#include "cachepc/uapi.h"
#include <sys/ioctl.h>
-#include <stdlib.h>
-#include <stdio.h>
#include <fcntl.h>
-#include <stdint.h>
#include <err.h>
#include <fcntl.h>
#include <unistd.h>
+#include <stdint.h>
+#include <stdlib.h>
int
main(int argc, const char **argv)
@@ -18,9 +17,9 @@ main(int argc, const char **argv)
fd = open("/dev/kvm", O_RDONLY);
if (fd < 0) err(1, "open");
- arg = argc > 1 ? atoi(argv[1]) : 1;
+ arg = argc > 1 ? atoi(argv[1]) : 1;
ret = ioctl(fd, KVM_CPC_DEBUG, &arg);
- if (ret == -1) err(1, "ioctl DEBUG");
+ if (ret == -1) err(1, "ioctl KVM_CPC_DEBUG");
close(fd);
}