Refactor: tools: Rearrange print_simple_status.
First, have it return a standard pacemaker return code which eliminates
the need for the has_warnings global. Second, use bool instead of
gboolean. Third, define the iter variable in the loop instead of at the
function level.