HomeFreeBSD

Merge r283870 from amd64:

Description

Merge r283870 from amd64:

Remove unneeded NULL checks in trap_fatal().

Since td_name is an array member of struct thread, it can never be NULL,
so the check can be removed. In addition, curproc can never be NULL,
so remove the if statement, and splice the two printfs() together.

While here, remove the u_long cast, and use the correct printf format
specifier for curproc->p_pid.

Requested by: jhb
MFC after: 3 days

Details

Provenance
dimAuthored on
Parents
rS284166: Properly initialize flags for accept4(2) not to return spurious EINVAL.
Branches
Unknown
Tags
Unknown