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