summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2019-03-20 21:36:32 -0700
committerMichael Pavone <pavone@retrodev.com>2019-03-20 21:36:32 -0700
commitf328cd509d79f1b468b32bab0fbfd214705534d7 (patch)
tree6bc155e41d9422a3a78682f51dec95143f4caa49
parentcd46470996e63c540e2e3e46c7db346277b32879 (diff)
Fix off-by one in IO port connection text output
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 4b571b0..2a3a03e 100644
--- a/io.c
+++ b/io.c
@@ -391,7 +391,7 @@ cleanup_sock:
} else
#endif
if (ports[i].device_type == IO_GAMEPAD3 || ports[i].device_type == IO_GAMEPAD6 || ports[i].device_type == IO_GAMEPAD2) {
- printf("IO port %s connected to gamepad #%d with type '%s'\n", io_name(i), ports[i].device.pad.gamepad_num + 1, device_type_names[ports[i].device_type]);
+ printf("IO port %s connected to gamepad #%d with type '%s'\n", io_name(i), ports[i].device.pad.gamepad_num, device_type_names[ports[i].device_type]);
} else {
printf("IO port %s connected to device '%s'\n", io_name(i), device_type_names[ports[i].device_type]);
}