[PATCH v3] tools: gpio: fix ioctl name in error message
From: Zhang Xiaolei
Date: Wed May 06 2026 - 20:42:12 EST
Use the correct ioctl name in the error message.
Signed-off-by: Zhang Xiaolei <zxl434815272@xxxxxxxxx>
---
tools/gpio/gpio-utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/gpio/gpio-utils.c b/tools/gpio/gpio-utils.c
index 930a38fe7911..0d52d58cc6b6 100644
--- a/tools/gpio/gpio-utils.c
+++ b/tools/gpio/gpio-utils.c
@@ -95,7 +95,7 @@ int gpiotools_request_line(const char *device_name, unsigned int *lines,
if (ret == -1) {
ret = -errno;
fprintf(stderr, "Failed to issue %s (%d), %s\n",
- "GPIO_GET_LINE_IOCTL", ret, strerror(errno));
+ "GPIO_V2_GET_LINE_IOCTL", ret, strerror(errno));
}
if (close(fd) == -1)
--
2.34.1