[PATCH v2 2/2] ioctl console test v2
archsbran
archsbran at gmail.com
Mon Mar 9 12:25:52 UTC 2020
From: Bran S <archsbran at gmail.com>
---
tests/ioctl_console.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/tests/ioctl_console.c b/tests/ioctl_console.c
index af7f1182..69054e9a 100644
--- a/tests/ioctl_console.c
+++ b/tests/ioctl_console.c
@@ -5,7 +5,6 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
-// #include "tests.h"
#include <stdio.h>
#include <string.h>
@@ -19,13 +18,13 @@ int
main(void)
{
char c_status;
- unsigned long int ul_status;
+ unsigned long int ul_status = 0;
ioctl(-1, KDGETLED, &c_status);
printf("ioctl(-1, KDGETLED, %p)" RVAL_EBADF, &c_status);
ioctl(-1, KDSETLED, ul_status);
- printf("ioctl(-1, KDSETLED, %d)" RVAL_EBADF, ul_status);
+ printf("ioctl(-1, KDSETLED, %ld)" RVAL_EBADF, ul_status);
puts("+++ exited with 0 +++");
return 0;
--
2.20.1
More information about the Strace-devel
mailing list