tprctl: enhance sighandler to explicitly print si_code

The current sighandler only restores the environment saved before, we
can not tell the SIGBUS reason. Therefore, explictly print si_code like
we do in tsimpleinj, 4 for BUS_MCEERR_AR, and 5 for BUS_MCEERR_AO.

Signed-off-by: Shuai Xue <xueshuai@linux.alibaba.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
1 file changed