]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix -Werror=format-security errors 300/head
authorJames Page <james.page@ubuntu.com>
Mon, 20 May 2013 09:21:16 +0000 (10:21 +0100)
committerJames Page <james.page@ubuntu.com>
Mon, 20 May 2013 09:21:16 +0000 (10:21 +0100)
Fixup a couple of errors when compilng with -Werror=format-security.

src/test/librbd/fsx.c

index 725c20886fafbc5a11bc0ebec738219e9c73dcdd..97feb4c98962cc12afa85de6a74f0715996b5f49 100644 (file)
@@ -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