Fix format insecurity

fixing compilation with `-Werror=format-security` enabled