1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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

has been broken since implemented.
This commit is contained in:
Mike Smith 1999-10-16 03:08:46 +00:00
parent 7382092841
commit 466454bd7b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52275

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]);