diff --git a/lib/events/libdmraid-events-isw.c b/lib/events/libdmraid-events-isw.c
index c092762..d5efe22 100644
--- a/lib/events/libdmraid-events-isw.c
+++ b/lib/events/libdmraid-events-isw.c
@@ -824,13 +824,13 @@ static void _log_either(enum log_type log_type,
 
 	sz = _log_all_devs(log_type, rs, NULL, 0);
 	if (!sz) {
-		syslog(LOG_ERR, msg[0]);
+		syslog(LOG_ERR, "%s", msg[0]);
 		return;
 	}
 
 	str = dm_malloc(++sz);
 	if (!str) {
-		syslog(LOG_ERR, msg[1]);
+		syslog(LOG_ERR, "%s", msg[1]);
 		return;
 	}
 
