~tribaal/ubuntu/trusty/ceph/ceph-zap-in-two-phases

« back to all changes in this revision

Viewing changes to debian/patches/fix_test_ftbfs.patch

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-05-19 21:04:18 UTC
  • Revision ID: package-import@ubuntu.com-20130519210418-053rk70dzn5z0a6r
Tags: 0.61.2-0ubuntu2
* Fix ceph-test package:
  - d/ceph-test.install: Add missing install file.
  - d/rules: Enable --with-debug option to build test executables.
  - d/p/fix_test_ftbfs.patch: Fix format-security errors.
* Fix rbd-fuse package:
  - d/rbd-fuse.install: Add missing install file.
* d/ceph.install: Include missing udev rule for ceph-osd disks.
* d/rules: Drop --with-system-leveldb as this is now the default.
* d/control,rules: Review and further re-sync with upstream packaging.
* d/ceph.{postinst,prerm}: start/stop ceph-all upstart configuration
  if upstart is in use.
* d/ceph-mds.{postinst,prerm}: start/stop ceph-mds-all upstart configuration
  if upstart is in use.
* d/p/python_rados_cluster_stat.patch: Dropped - included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Fix -Werror=format-security errors
 
2
Author: James Page <james.page@ubuntu.com>
 
3
Forwarded: https://github.com/ceph/ceph/pull/300
 
4
 
 
5
--- a/src/test/librbd/fsx.c
 
6
+++ b/src/test/librbd/fsx.c
 
7
@@ -211,9 +211,9 @@ prt(char *fmt, ...)
 
8
        va_start(args, fmt);
 
9
        vsnprintf(buffer, BUF_SIZE, fmt, args);
 
10
        va_end(args);
 
11
-       fprintf(stdout, buffer);
 
12
+       fprintf(stdout, "%s", buffer);
 
13
        if (fsxlogf)
 
14
-               fprintf(fsxlogf, buffer);
 
15
+               fprintf(fsxlogf, "%s", buffer);
 
16
 }
 
17
 
 
18
 void