]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r284167:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 20 Jun 2015 13:25:28 +0000 (13:25 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 20 Jun 2015 13:25:28 +0000 (13:25 +0000)
commitcc6cb3bfb575234180f8528536bf1606ce151db7
tree25e2505e05656cffa1adb588a1687478018afcf7
parent28732398eeaae77d0228f49e9dc33707ee851aca
MFC r284167:

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@284642 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/i386/i386/trap.c