Fix build warnings about missing printf arguments.