Fix security warning about passing a variable to printf-formatting.