fixing hal_status formatting