[PATCH v5 11/35] monitor: use class methods for monitor_vprintf