summaryrefslogtreecommitdiff
blob: 98490e3836c964411bb91fe59dc5493f50d673ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
 common/syslogging.c | 2 +-
 vgseer/vgseer.c     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/common/syslogging.c b/common/syslogging.c
index dcb7106..df0b537 100644
--- a/common/syslogging.c
+++ b/common/syslogging.c
@@ -40,6 +40,6 @@ void syslogging(const gchar* log_domain, GLogLevelFlags log_level,
 	else
 		priority = LOG_NOTICE;
 
-	syslog(priority, message);
+	syslog(priority, "%s", message);
 }
 
diff --git a/vgseer/vgseer.c b/vgseer/vgseer.c
index e045835..18b0024 100644
--- a/vgseer/vgseer.c
+++ b/vgseer/vgseer.c
@@ -276,13 +276,13 @@ static gint connect_to_vgd(gchar* server, gchar* port,
 	if (STREQ(value, "ERROR")) {
 		/* Print reason for error and exit. */
 		get_param_verify(fd, &param, &value, P_REASON, NULL);
-		g_critical(value);
+		g_critical("%s", value);
 		clean_fail(NULL);
 	}
 	else if (STREQ(value, "WARNING")) {
 		/* Print warning but continue. */
 		get_param_verify(fd, &param, &value, P_REASON, NULL);
-		g_warning(value);
+		g_warning("%s", value);
 	}
 	else if (!STREQ(value, "OK")) {
 		g_critical("Unknown value for P_STATUS: %s", value);