diff options
author | jhb <jhb@FreeBSD.org> | 2003-03-20 21:15:54 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-03-20 21:15:54 +0000 |
commit | 15ebade0f49b1e1e6e150dec2ce588fd540bf300 (patch) | |
tree | 02b7da0e45cf775a33e5e6e633534073db9a2f98 /sys/ufs | |
parent | 300b98684dd3812c957a46ba1d58bd9748565866 (diff) | |
download | FreeBSD-src-15ebade0f49b1e1e6e150dec2ce588fd540bf300.zip FreeBSD-src-15ebade0f49b1e1e6e150dec2ce588fd540bf300.tar.gz |
Minor fixes to ffs_fserr():
- Assume that curthread is not NULL. It never is in -current.
- Use td_ucred instead of p_ucred.
Diffstat (limited to 'sys/ufs')
-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); } /* |