From: James Page Date: Mon, 20 May 2013 09:21:16 +0000 (+0100) Subject: Fix -Werror=format-security errors X-Git-Tag: v0.64~99^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6340ba8ac486b24b43582885fafdcfe7cb31391a;p=ceph.git Fix -Werror=format-security errors Fixup a couple of errors when compilng with -Werror=format-security. --- diff --git a/src/test/librbd/fsx.c b/src/test/librbd/fsx.c index 725c20886faf..97feb4c98962 100644 --- a/src/test/librbd/fsx.c +++ b/src/test/librbd/fsx.c @@ -211,9 +211,9 @@ prt(char *fmt, ...) va_start(args, fmt); vsnprintf(buffer, BUF_SIZE, fmt, args); va_end(args); - fprintf(stdout, buffer); + fprintf(stdout, "%s", buffer); if (fsxlogf) - fprintf(fsxlogf, buffer); + fprintf(fsxlogf, "%s", buffer); } void