Fix mlx_diagnose_command so that it actually works. I can't believe this

has been broken since implemented.
This commit is contained in:
msmith 1999-10-16 03:08:46 +00:00
parent 8a46b354b1
commit 042c659c00

View File

@ -2324,7 +2324,7 @@ mlx_diagnose_command(struct mlx_command *mc)
/* look up message in table */
for (i = 0; mlx_messages[i].command != -1; i++)
if ((mc->mc_mailbox[0] == mlx_messages[i].command) &&
(mc->mc_status == mlx_messages[i].command))
(mc->mc_status == mlx_messages[i].status))
return(mlx_status_messages[mlx_messages[i].msg]);
sprintf(unkmsg, "unknown response 0x%x for command 0x%x", (int)mc->mc_status, (int)mc->mc_mailbox[0]);