From 6340ba8ac486b24b43582885fafdcfe7cb31391a Mon Sep 17 00:00:00 2001 From: James Page Date: Mon, 20 May 2013 10:21:16 +0100 Subject: [PATCH] Fix -Werror=format-security errors Fixup a couple of errors when compilng with -Werror=format-security. --- src/test/librbd/fsx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/librbd/fsx.c b/src/test/librbd/fsx.c index 725c20886fafb..97feb4c98962c 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 -- 2.39.5