halt/reboot/poweroff: improve error reporting

function                                             old     new   delta
halt_main                                            207     185     -22

2 files changed