in reply to Skipping parameters in sprintf %, elegantly
Alternately "file=%2\$s line=%3\$s param=%4\$d\n". Note that the indexing starts by 1.
Update: fixed typo in code where one of the \$ was \% instead.