diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2015-02-06 20:48:26 +0000 |
---|---|---|
committer | Jon TURNEY <jon.turney@dronecode.org.uk> | 2015-02-07 21:17:00 +0000 |
commit | 8cbaeed1d57103361524ca6083f467d5a505d039 (patch) | |
tree | 8688b3bfb105f9d3aee206d0f22ef3f03401d3c2 | |
parent | 18e501e1ef827f72f0b805a1e8a0aaa3cc0fcb5f (diff) |
hw/xwin: print format fixes in xevents.ccygwin-warning-fixes-for-1.17
Window and Atom types derive from XID, which is always unsigned long in client
code, so use %ld format specifier
XTextProperty.nitems is of type unsigned long, so use %lu format specifier
ulReturnBytesLeft is of type unsigned long, so use %lu format specifier
-rw-r--r-- | hw/xwin/winclipboard/xevents.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hw/xwin/winclipboard/xevents.c b/hw/xwin/winclipboard/xevents.c index dbbe6fc24..aee6c86a2 100644 --- a/hw/xwin/winclipboard/xevents.c +++ b/hw/xwin/winclipboard/xevents.c @@ -107,7 +107,7 @@ MonitorSelection(XFixesSelectionNotifyEvent * e, unsigned int i) /* Save new selection owner or None */ s_iOwners[i] = e->owner; - winDebug("MonitorSelection - %s - Now owned by XID %x\n", + winDebug("MonitorSelection - %s - Now owned by XID %lx\n", szSelectionNames[i], e->owner); } @@ -172,7 +172,7 @@ winClipboardSelectionNotifyTargets(HWND hwnd, Window iWindow, Display *pDisplay, Atom atom = prop[i]; char *pszAtomName = XGetAtomName(pDisplay, atom); data->targetList[i] = atom; - winDebug("winClipboardFlushXEvents - SelectionNotify - target[%d] %d = %s\n", i, atom, pszAtomName); + winDebug("winClipboardFlushXEvents - SelectionNotify - target[%d] %ld = %s\n", i, atom, pszAtomName); XFree(pszAtomName); } @@ -231,7 +231,7 @@ winClipboardFlushXEvents(HWND hwnd, { char *pszAtomName = NULL; - winDebug("SelectionRequest - target %d\n", + winDebug("SelectionRequest - target %ld\n", event.xselectionrequest.target); pszAtomName = XGetAtomName(pDisplay, @@ -561,7 +561,7 @@ winClipboardFlushXEvents(HWND hwnd, */ if (event.xselection.property == None) { ErrorF("winClipboardFlushXEvents - SelectionNotify - " - "Conversion to format %d refused.\n", + "Conversion to format %ld refused.\n", event.xselection.target); return WIN_XEVENTS_FAILED; } @@ -591,7 +591,7 @@ winClipboardFlushXEvents(HWND hwnd, { char *pszAtomName = NULL; - winDebug("SelectionNotify - returned data %d left %d\n", + winDebug("SelectionNotify - returned data %lu left %lu\n", xtpText.nitems, ulReturnBytesLeft); pszAtomName = XGetAtomName(pDisplay, xtpText.encoding); winDebug("Notify atom name %s\n", pszAtomName); |