Fix compilation warnings

Fix warning: format string is not a string literal (potentially insecure) [-Wformat-security]
and warning: unused parameter 'args' [-Wunused-parameter]