logging: Fixed a missing printf-style format argument

This was identified by GCC's format-security check which forbids any non
string literals to be used as format argument.