dev-uas: using error_report instead of fprintf