I know, it was deliberately like this ( .. , "%s", msg.str()) as a paranoid approach, just in case 'msg' has any stray formatting characters in it.
But admittedly in this case where the contents of msg is well defined that does seem a bit OTT.