aboutsummaryrefslogtreecommitdiff
path: root/eizoctl.c
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2025-01-18 18:56:56 +0100
committerPřemysl Eric Janouch <p@janouch.name>2025-01-18 18:57:16 +0100
commit89cab6fa393f7d083f878d66957af176f51c2322 (patch)
treea8791b8ff8a6061fcd2d1420e1fd773b6f16bc88 /eizoctl.c
parentaea9c334e0f4842d78f3b849079bfb318d4f6937 (diff)
downloadusb-drivers-89cab6fa393f7d083f878d66957af176f51c2322.tar.gz
usb-drivers-89cab6fa393f7d083f878d66957af176f51c2322.tar.xz
usb-drivers-89cab6fa393f7d083f878d66957af176f51c2322.zip
eizoctl: display non-first numbers correctly
Humans count from 1, not from 0.
Diffstat (limited to 'eizoctl.c')
-rw-r--r--eizoctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eizoctl.c b/eizoctl.c
index 4207f99..3081b40 100644
--- a/eizoctl.c
+++ b/eizoctl.c
@@ -817,7 +817,7 @@ eizo_port_to_name(uint16_t port)
else if (!number)
snprintf(buffer, sizeof buffer, "%s", stem);
else
- snprintf(buffer, sizeof buffer, "%s %d", stem, number);
+ snprintf(buffer, sizeof buffer, "%s %d", stem, (number + 1));
return buffer;
}