diff options
author | Rhys Kidd <rhyskidd@gmail.com> | 2016-10-28 23:37:59 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2016-11-01 13:44:26 -0400 |
commit | ea3a033f1cf0394801ab42eb644468547a29fb9d (patch) | |
tree | c72e27d5cefe1c10fa288377613c5c9d9b831d02 | |
parent | 1eef52f965340da4a78ae1be4b05c50b0ee19203 (diff) |
xts5: Fix missing variable for format specifier
XtRemoveRawEventHandler.c:396:3: warning: format '%d' expects a matching 'int' argument [-Wformat=]
sprintf(ebuf, "ERROR: Error message handler was invoked %d times");
^
XtRemoveRawEventHandler.c:401:3: warning: format '%d' expects a matching 'int' argument [-Wformat=]
sprintf(ebuf, "ERROR: Warning message handler was invoked %d times");
^
XtRemoveRawEventHandler.c:478:3: warning: format '%d' expects a matching 'int' argument [-Wformat=]
sprintf(ebuf, "ERROR: Error message handler was invoked %d times");
^
XtRemoveRawEventHandler.c:483:3: warning: format '%d' expects a matching 'int' argument [-Wformat=]
sprintf(ebuf, "ERROR: Warning message handler was invoked %d times");
^
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
-rw-r--r-- | xts5/Xt9/XtRemoveRawEventHandler.m | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xts5/Xt9/XtRemoveRawEventHandler.m b/xts5/Xt9/XtRemoveRawEventHandler.m index 0a3f9161..87dc2867 100644 --- a/xts5/Xt9/XtRemoveRawEventHandler.m +++ b/xts5/Xt9/XtRemoveRawEventHandler.m @@ -374,13 +374,13 @@ int invoked = 0; XtAppMainLoop(app_ctext); LKROF(pid2, AVSXTTIMEOUT-2); tet_infoline("TEST: Error message was not emitted"); - if (avs_get_event(3) != 0) { - sprintf(ebuf, "ERROR: Error message handler was invoked %d times"); + if (invoked = avs_get_event(3) != 0) { + sprintf(ebuf, "ERROR: Error message handler was invoked %d times", invoked); tet_infoline(ebuf); tet_result(TET_FAIL); } - if (avs_get_event(2) != 0) { - sprintf(ebuf, "ERROR: Warning message handler was invoked %d times"); + if (invoked = avs_get_event(2) != 0) { + sprintf(ebuf, "ERROR: Warning message handler was invoked %d times", invoked); tet_infoline(ebuf); tet_result(TET_FAIL); } @@ -440,13 +440,13 @@ int invoked = 0; tet_result(TET_FAIL); } tet_infoline("TEST: Error message was not emitted"); - if (avs_get_event(3) != 0) { - sprintf(ebuf, "ERROR: Error message handler was invoked %d times"); + if (invoked = avs_get_event(3) != 0) { + sprintf(ebuf, "ERROR: Error message handler was invoked %d times", invoked); tet_infoline(ebuf); tet_result(TET_FAIL); } - if (avs_get_event(2) != 0) { - sprintf(ebuf, "ERROR: Warning message handler was invoked %d times"); + if (invoked = avs_get_event(2) != 0) { + sprintf(ebuf, "ERROR: Warning message handler was invoked %d times", invoked); tet_infoline(ebuf); tet_result(TET_FAIL); } |