Address static analysis issues caused by incorrect printf parameter.