diff --git a/pd/src/s_audio_alsa.c b/pd/src/s_audio_alsa.c
index 9cbe017d69b3f1efc89e5c5e3019a72892fc126b..beeb812912332886f3a22601fc6c3c58926d5a6f 100644
--- a/pd/src/s_audio_alsa.c
+++ b/pd/src/s_audio_alsa.c
@@ -747,10 +747,10 @@ static void alsa_checkiosync( void)
             }
             if (result < 0)
             {
-                post("output snd_pcm_delay failed: %s", snd_strerror(result));
-                if (snd_pcm_status(alsa_outdev[iodev].a_handle,
+                post("input snd_pcm_delay failed: %s", snd_strerror(result));
+                if (snd_pcm_status(alsa_indev[iodev].a_handle,
                     alsa_status) < 0)
-                    post("output snd_pcm_status failed");
+                    post("input snd_pcm_status failed");
                 else post("astate %d",
                      snd_pcm_status_get_state(alsa_status));
                 return;