used sprintf in log messages
fixed cs with csfixer