From 252b11a01e061fd17821e53a41c8451a1d2c27bd Mon Sep 17 00:00:00 2001 From: Louis Burda Date: Tue, 10 Jan 2023 01:37:23 +0100 Subject: Begin ioctl and test-case overhaul --- util/debug.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'util/debug.c') 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 -#include -#include #include -#include #include #include #include +#include +#include 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); } -- cgit v1.2.3-71-gd317