diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2025-01-18 18:56:56 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2025-01-18 18:57:16 +0100 |
commit | 89cab6fa393f7d083f878d66957af176f51c2322 (patch) | |
tree | a8791b8ff8a6061fcd2d1420e1fd773b6f16bc88 | |
parent | aea9c334e0f4842d78f3b849079bfb318d4f6937 (diff) | |
download | usb-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.
-rw-r--r-- | eizoctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |