diff options
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/X.c | 2 | ||||
-rw-r--r-- | tests/src/initctl.c | 2 | ||||
-rw-r--r-- | tests/src/libsystem.c | 16 | ||||
-rw-r--r-- | tests/src/status.h | 2 | ||||
-rw-r--r-- | tests/src/test-session.c | 2 | ||||
-rw-r--r-- | tests/src/unity-system-compositor.c | 2 |
6 files changed, 13 insertions, 13 deletions
diff --git a/tests/src/X.c b/tests/src/X.c index b737ddbd..1a294fea 100644 --- a/tests/src/X.c +++ b/tests/src/X.c @@ -386,7 +386,7 @@ main (int argc, char **argv) g_string_append (status_text, " SHAREVTS=TRUE"); if (mir_id != NULL) g_string_append_printf (status_text, " MIR-ID=%s", mir_id); - status_notify (status_text->str); + status_notify ("%s", status_text->str); g_string_free (status_text, TRUE); if (g_key_file_has_key (config, "test-xserver-config", "return-value", NULL)) diff --git a/tests/src/initctl.c b/tests/src/initctl.c index 092e8b90..600cea98 100644 --- a/tests/src/initctl.c +++ b/tests/src/initctl.c @@ -22,7 +22,7 @@ main (int argc, char **argv) status_text = g_string_new ("INIT"); for (i = 1; i < argc; i++) g_string_append_printf (status_text, " %s", argv[i]); - status_notify (status_text->str); + status_notify ("%s", status_text->str); g_string_free (status_text, TRUE); } diff --git a/tests/src/libsystem.c b/tests/src/libsystem.c index 52758272..ab8eeac8 100644 --- a/tests/src/libsystem.c +++ b/tests/src/libsystem.c @@ -824,7 +824,7 @@ pam_start (const char *service_name, const char *user, const struct pam_conv *co g_string_append_printf (status, " SERVICE=%s", service_name); if (user) g_string_append_printf (status, " USER=%s", user); - status_notify (status->str); + status_notify ("%s", status->str); g_string_free (status, TRUE); } @@ -862,7 +862,7 @@ pam_authenticate (pam_handle_t *pamh, int flags) if (flags & PAM_DISALLOW_NULL_AUTHTOK) g_string_append (status, " DISALLOW_NULL_AUTHTOK"); - status_notify (status->str); + status_notify ("%s", status->str); g_string_free (status, TRUE); } @@ -1240,7 +1240,7 @@ pam_open_session (pam_handle_t *pamh, int flags) if (flags & PAM_SILENT) g_string_append (status, " SILENT"); - status_notify (status->str); + status_notify ("%s", status->str); g_string_free (status, TRUE); } @@ -1300,7 +1300,7 @@ pam_close_session (pam_handle_t *pamh, int flags) if (flags & PAM_SILENT) g_string_append (status, " SILENT"); - status_notify (status->str); + status_notify ("%s", status->str); g_string_free (status, TRUE); } @@ -1325,7 +1325,7 @@ pam_acct_mgmt (pam_handle_t *pamh, int flags) if (flags & PAM_DISALLOW_NULL_AUTHTOK) g_string_append (status, " DISALLOW_NULL_AUTHTOK"); - status_notify (status->str); + status_notify ("%s", status->str); g_string_free (status, TRUE); } @@ -1365,7 +1365,7 @@ pam_chauthtok (pam_handle_t *pamh, int flags) if (flags & PAM_CHANGE_EXPIRED_AUTHTOK) g_string_append (status, " CHANGE_EXPIRED_AUTHTOK"); - status_notify (status->str); + status_notify ("%s", status->str); g_string_free (status, TRUE); } @@ -1425,7 +1425,7 @@ pam_setcred (pam_handle_t *pamh, int flags) if (flags & PAM_REFRESH_CRED) g_string_append (status, " REFRESH_CRED"); - status_notify (status->str); + status_notify ("%s", status->str); g_string_free (status, TRUE); } @@ -1484,7 +1484,7 @@ pam_end (pam_handle_t *pamh, int pam_status) status = g_string_new (""); g_string_append_printf (status, "%s END", pamh->id); - status_notify (status->str); + status_notify ("%s", status->str); g_string_free (status, TRUE); } diff --git a/tests/src/status.h b/tests/src/status.h index c88822f2..29d19370 100644 --- a/tests/src/status.h +++ b/tests/src/status.h @@ -11,7 +11,7 @@ typedef void (*StatusRequestFunc)(const gchar *name, GHashTable *params); gboolean status_connect (StatusRequestFunc message_cb, const gchar *id); -void status_notify (const gchar *format, ...); +void status_notify (const gchar *format, ...) __attribute__((format (printf, 1, 2))); #ifdef __cplusplus } diff --git a/tests/src/test-session.c b/tests/src/test-session.c index 1e39a724..a869fadb 100644 --- a/tests/src/test-session.c +++ b/tests/src/test-session.c @@ -300,7 +300,7 @@ main (int argc, char **argv) if (argc > 1) g_string_append_printf (status_text, " NAME=%s", argv[1]); g_string_append_printf (status_text, " USER=%s", getenv ("USER")); - status_notify (status_text->str); + status_notify ("%s", status_text->str); g_string_free (status_text, TRUE); config = g_key_file_new (); diff --git a/tests/src/unity-system-compositor.c b/tests/src/unity-system-compositor.c index cdb70114..ab6ea114 100644 --- a/tests/src/unity-system-compositor.c +++ b/tests/src/unity-system-compositor.c @@ -209,7 +209,7 @@ main (int argc, char **argv) g_string_append (status_text, " TEST=TRUE"); if (container) g_string_append (status_text, " CONTAINER=TRUE"); - status_notify (status_text->str); + status_notify ("%s", status_text->str); g_string_free (status_text, TRUE); config = g_key_file_new (); |