Fix format arguments in CaptureMessagef