Fix all of the -Wformat-security warnings

This fixes compilation with -Werror=format-security enabled e.g. Debian's defaults

Signed-off-by: Steven Honeyman <stevenhoneyman@users.noreply.github.com>