[PATCH v6 17/27] monitor: refactor error_vprintf()