use passed in parameter and not global in log message.

Should shut up the race detector (and make the printf more correct)