Minor code style updates

Updated old code for sprintf-style formatting to match current
conventions.