diff options
-rw-r--r-- | sys/ufs/ffs/ffs_alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_alloc.c b/sys/ufs/ffs/ffs_alloc.c index f3d6783..f8c4fab 100644 --- a/sys/ufs/ffs/ffs_alloc.c +++ b/sys/ufs/ffs/ffs_alloc.c @@ -2144,11 +2144,11 @@ ffs_fserr(fs, inum, cp) ino_t inum; char *cp; { - struct proc *p = curproc; /* XXX */ + struct thread *td = curthread; /* XXX */ + struct proc *p = td->td_proc; log(LOG_ERR, "pid %d (%s), uid %d inumber %d on %s: %s\n", - p ? p->p_pid : -1, p ? p->p_comm : "-", - p ? p->p_ucred->cr_uid : 0, inum, fs->fs_fsmnt, cp); + p->p_pid, p->p_comm, td->td_ucred->cr_uid, inum, fs->fs_fsmnt, cp); } /* |