Removing unused parameters from `sprintf` call