[PATCH xts 1/3] xts5: Fix missing variable for format specifier

Rhys Kidd rhyskidd at gmail.com
Sat Oct 29 03:37:57 UTC 2016


XtGetKeysymTable.c:258:5: warning: format '%ld' expects a matching 'long int' argument [-Wformat=]

Signed-off-by: Rhys Kidd <rhyskidd at gmail.com>
---
 xts5/Xt12/XtGetKeysymTable.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xts5/Xt12/XtGetKeysymTable.m b/xts5/Xt12/XtGetKeysymTable.m
index db22f1b..1d8ab91 100644
--- a/xts5/Xt12/XtGetKeysymTable.m
+++ b/xts5/Xt12/XtGetKeysymTable.m
@@ -209,7 +209,7 @@ Xlib returns to what Xt returns*/
 	for (i = min_keycode; i <= max_keycode; i++ ) {
 		if (keysym_good[i] == NoSymbol) {
 			if (keysym_return[i] != NoSymbol) {
-				sprintf(ebuf, "ERROR: min_keycode + %d should be NoSymbol, is %ld", (long)keysym_return[i]);
+				sprintf(ebuf, "ERROR: min_keycode + %d should be NoSymbol, is %ld", i, (long)keysym_return[i]);
 				tet_infoline(ebuf);
 				tet_result(TET_FAIL);
 			}
-- 
2.9.3



More information about the xorg-devel mailing list