summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2010-01-29 06:43:29 -0500
committerWilliam Jon McCann <jmccann@redhat.com>2010-01-29 06:43:29 -0500
commite7f3952632f077ff647e303bd08950085c293297 (patch)
tree7b0d8b1b86f5af9bc89acf6e59a1c9e4563f2ae5
parent42315147af68f5e64f86d794061e8c03e2b8dc01 (diff)
format not a string literal and no format arguments
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=24152
-rw-r--r--src/ck-log-event.c16
-rw-r--r--src/main.c2
2 files changed, 9 insertions, 9 deletions
diff --git a/src/ck-log-event.c b/src/ck-log-event.c
index 66f439c..5cc88ce 100644
--- a/src/ck-log-event.c
+++ b/src/ck-log-event.c
@@ -721,7 +721,7 @@ parse_log_for_seat_added (const GString *str,
error = NULL;
re = g_regex_new ("seat-id='(?P<seatid>[a-zA-Z0-9/]+)' seat-kind=(?P<sessionid>[0-9]*)", 0, 0, &error);
if (re == NULL) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
goto out;
}
@@ -781,7 +781,7 @@ parse_log_for_seat_removed (const GString *str,
error = NULL;
re = g_regex_new ("seat-id='(?P<seatid>[a-zA-Z0-9/]+)' seat-kind=(?P<sessionid>[0-9]*)", 0, 0, &error);
if (re == NULL) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
goto out;
}
@@ -887,7 +887,7 @@ parse_log_for_system_start (const GString *str,
error = NULL;
re = g_regex_new ("(kernel-release='(?P<release>[^']+)')?[ ]?(boot-arguments='(?P<arguments>.*)')?", 0, 0, &error);
if (re == NULL) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
goto out;
}
@@ -941,7 +941,7 @@ parse_log_for_seat_session_added (const GString *str,
error = NULL;
re = g_regex_new ("seat-id='(?P<seatid>[a-zA-Z0-9/]+)' session-id='(?P<sessionid>[a-zA-Z0-9/]+)' session-type='(?P<sessiontype>[a-zA-Z0-9 ]*)' session-x11-display='(?P<sessionx11display>[0-9a-zA-Z.:]*)' session-x11-display-device='(?P<sessionx11displaydevice>[^']*)' session-display-device='(?P<sessiondisplaydevice>[^']*)' session-remote-host-name='(?P<sessionremovehostname>[^']*)' session-is-local=(?P<sessionislocal>[a-zA-Z]*) session-unix-user=(?P<sessionunixuser>[0-9]*) session-creation-time='(?P<sessioncreationtime>[^']*)'", 0, 0, &error);
if (re == NULL) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
goto out;
}
@@ -1016,7 +1016,7 @@ parse_log_for_seat_session_removed (const GString *str,
error = NULL;
re = g_regex_new ("seat-id='(?P<seatid>[a-zA-Z0-9/]+)' session-id='(?P<sessionid>[a-zA-Z0-9/]+)' session-type='(?P<sessiontype>[a-zA-Z0-9 ]*)' session-x11-display='(?P<sessionx11display>[0-9a-zA-Z.:]*)' session-x11-display-device='(?P<sessionx11displaydevice>[^']*)' session-display-device='(?P<sessiondisplaydevice>[^']*)' session-remote-host-name='(?P<sessionremovehostname>[^']*)' session-is-local=(?P<sessionislocal>[a-zA-Z]*) session-unix-user=(?P<sessionunixuser>[0-9]*) session-creation-time='(?P<sessioncreationtime>[^']*)'", 0, 0, &error);
if (re == NULL) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
goto out;
}
@@ -1090,7 +1090,7 @@ parse_log_for_seat_active_session_changed (const GString *str,
error = NULL;
re = g_regex_new ("seat-id='(?P<seatid>[a-zA-Z0-9/]+)' session-id='(?P<sessionid>[a-zA-Z0-9/]*)'", 0, 0, &error);
if (re == NULL) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
goto out;
}
@@ -1142,7 +1142,7 @@ parse_log_for_seat_device_added (const GString *str,
error = NULL;
re = g_regex_new ("seat-id='(?P<seatid>[a-zA-Z0-9/]+)' device-id='(?P<deviceid>[^']+)' device-type='(?P<devicetype>[^']+)'", 0, 0, &error);
if (re == NULL) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
goto out;
}
@@ -1195,7 +1195,7 @@ parse_log_for_seat_device_removed (const GString *str,
error = NULL;
re = g_regex_new ("seat-id='(?P<seatid>[a-zA-Z0-9/]+)' device-id='(?P<deviceid>[^']+)' device-type='(?P<devicetype>[^']+)'", 0, 0, &error);
if (re == NULL) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
goto out;
}
diff --git a/src/main.c b/src/main.c
index b8f698f..f685026 100644
--- a/src/main.c
+++ b/src/main.c
@@ -283,7 +283,7 @@ main (int argc,
res = g_option_context_parse (context, &argc, &argv, &error);
g_option_context_free (context);
if (! res) {
- g_warning (error->message);
+ g_warning ("%s", error->message);
g_error_free (error);
goto out;
}