Correct panic message.

MFC after:	1 month
MFC with:	r236731
This commit is contained in:
Pawel Jakub Dawidek 2012-06-09 12:27:30 +00:00
parent 85d4004625
commit 5d02ed91e9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236812

View File

@ -1554,7 +1554,7 @@ fdalloc(struct thread *td, int minfd, int *result)
*/
KASSERT(!fdisused(fdp, fd),
("fd_first_free() returned non-free descriptor"));
KASSERT(fdp->fd_ofiles[fd] == NULL, ("free descriptor isn't"));
KASSERT(fdp->fd_ofiles[fd] == NULL, ("file descriptor isn't free"));
KASSERT(fdp->fd_ofileflags[fd] == 0, ("file flags are set"));
fdused(fdp, fd);
*result = fd;