mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Minor fixes to ffs_fserr():
- Assume that curthread is not NULL. It never is in -current. - Use td_ucred instead of p_ucred.
This commit is contained in:
parent
b254666064
commit
2a53bfbe62
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112450
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user