]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
enable format-safety checks for virDomainReportError
authorJim Meyering <meyering@redhat.com>
Fri, 18 Jul 2008 11:02:18 +0000 (11:02 +0000)
committerJim Meyering <meyering@redhat.com>
Fri, 18 Jul 2008 11:02:18 +0000 (11:02 +0000)
* src/domain_conf.c (virDomainReportError): Declare using
ATTRIBUTE_FORMAT(printf, 3, 4).
* Makefile.maint (msg_gen_function): Add virDomainReportError.

ChangeLog
Makefile.maint
src/domain_conf.c

index a19085e727fb63c0c7fd33fc382093858817cc1b..f0d29fd12dbd43a74df94f06839f0319fd4fcbac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
+Wed Jul 18 13:01:38 CEST 2008 Jim Meyering <meyering@redhat.com>
+
+       enable format-safety checks for virDomainReportError
+       * src/domain_conf.c (virDomainReportError): Declare using
+       ATTRIBUTE_FORMAT(printf, 3, 4).
+       * Makefile.maint (msg_gen_function): Add virDomainReportError.
+
 Thu Jul 17 17:18:24 CEST 2008 Daniel Veillard <veillard@redhat.com>
 
-       * src/storage_backend_fs.c: patch from Cole Robinson fixing 
+       * src/storage_backend_fs.c: patch from Cole Robinson fixing
          pool-create for netfs format 'auto'
 
 Thu Jul 17 13:47:56 CEST 2008 Daniel Veillard <veillard@redhat.com>
@@ -10,7 +17,7 @@ Thu Jul 17 13:47:56 CEST 2008 Daniel Veillard <veillard@redhat.com>
 
 Wed Jul 16 22:36:43 CEST 2008 Daniel Veillard <veillard@redhat.com>
 
-       * src/libvirt.c src/openvz_driver.c: fix the description of the ID 
+       * src/libvirt.c src/openvz_driver.c: fix the description of the ID
          domain lookup and fix the OpenVZ routine
 
 Wed Jul 16 17:25:02 CEST 2008 Daniel Veillard <veillard@redhat.com>
index 5da2984dee1af7286f96dc97f984034e98305edb..03800f8905e199eea6a3fa76405f85d1d81f8f9c 100644 (file)
@@ -352,6 +352,7 @@ msg_gen_function += ReportError
 msg_gen_function += qemudReportError
 msg_gen_function += openvzLog
 msg_gen_function += openvzError
+msg_gen_function += virDomainReportError
 
 # Uncomment the following and run "make syntax-check" to see diagnostics
 # that are not yet marked for translation, but that need to be rewritten
index 82c0ee6aa2f57470b62dbc4711825934f211b744..2ff5d1a6985f2f6eebac04d490b491cd7ef25a04 100644 (file)
@@ -126,6 +126,10 @@ VIR_ENUM_IMPL(virDomainGraphics, VIR_DOMAIN_GRAPHICS_TYPE_LAST,
               "vnc")
 
 
+static void virDomainReportError(virConnectPtr conn,
+                                 int code, const char *fmt, ...)
+  ATTRIBUTE_FORMAT(printf, 3, 4);
+
 static void virDomainReportError(virConnectPtr conn,
                                  int code, const char *fmt, ...)
 {