Fix compilation error when using -Werror=format-security

Passing a variable as a format string is a potential security issue. Fixes compilation on Ubuntu 14.04 64 bit.