[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 9/9] syntax-check: avoid spurious false-positive



From: Jim Meyering <meyering redhat com>

* src/iptables.c (notifyRulesUpdated): Use %s rather than
string-concatenation that made sc_unmarked_diagnostics report
a false-positive.
---
 src/iptables.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/iptables.c b/src/iptables.c
index 81c976b..68f1941 100644
--- a/src/iptables.c
+++ b/src/iptables.c
@@ -101,8 +101,8 @@ notifyRulesUpdated(const char *table,

     char ebuf[1024];
     if (virRun(NULL, argv, NULL) < 0)
-        qemudLog(QEMUD_WARN, _("Failed to run '" LOKKIT_PATH " %s': %s"),
-                 arg, virStrerror(errno, ebuf, sizeof ebuf));
+        qemudLog(QEMUD_WARN, _("Failed to run '%s %s': %s"),
+                 LOKKIT_PATH, arg, virStrerror(errno, ebuf, sizeof ebuf));
 }

 static int
-- 
1.6.1.2.418.gd79e6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]