{
xCreateWindowReq *stuff = (xCreateWindowReq *)req;
- REPLY (": Window(0x%lx) Parent(0x%lx) size(%dx%d) boaderWid(%d) coordinate(%d,%d)",
- stuff->wid,
- stuff->parent,
+ REPLY (": Window(0x%x) Parent(0x%x) size(%dx%d) boaderWid(%d) coordinate(%d,%d)",
+ (unsigned int)stuff->wid,
+ (unsigned int)stuff->parent,
stuff->width,
stuff->height,
stuff->borderWidth,
switch (stuff->visual)
{
case CopyFromParent: visual = "CopyFromParent"; break;
- default: visual = dvisual; snprintf (dvisual, 10, "0x%lx", stuff->visual); break;
+ default: visual = dvisual; snprintf (dvisual, 10, "0x%x", (unsigned int)stuff->visual); break;
}
switch (stuff->class)
case X_ChangeWindowAttributes:
{
xChangeWindowAttributesReq *stuff = (xChangeWindowAttributesReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->window);
+ REPLY (": XID(0x%x)", (unsigned int)stuff->window);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
- \r REPLY (" value_mask");
+ \r REPLY (" detail");
\r REPLY ("(");
reply = _getWindowAttributeMask(stuff->valueMask, reply, len);
+ if (stuff->valueMask == CWEventMask)
+
+ REPLY (", mask(%x)", (unsigned int)*((XID *)&stuff[1]));
\r REPLY (")");
}
{
xChangeSaveSetReq *stuff = (xChangeSaveSetReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->window);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case X_ReparentWindow:
{
xReparentWindowReq *stuff = (xReparentWindowReq *)req;
- REPLY (": Window(0x%lx) Parent(0x%lx) coord(%d,%d)",
- stuff->window,
- stuff->parent,
+ REPLY (": Window(0x%x) Parent(0x%x) coord(%d,%d)",
+ (unsigned int)stuff->window,
+ (unsigned int)stuff->parent,
stuff->x,
stuff->y);
case X_ConfigureWindow:
{
xConfigureWindowReq *stuff = (xConfigureWindowReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->window);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
{
xCirculateWindowReq *stuff = (xCirculateWindowReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->window);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
{
xChangePropertyReq *stuff = (xChangePropertyReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->window);
REPLY (" Property");
reply = xDbgGetAtom(stuff->property, evinfo, reply, len);
" ",
mode,
stuff->format,
- stuff->nUnits);
+ (long int)stuff->nUnits);
}
return reply;
case X_DeleteProperty:
{
xDeletePropertyReq *stuff = (xDeletePropertyReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->window);
REPLY (" Property");
reply = xDbgGetAtom(stuff->property, evinfo, reply, len);
{
xGetPropertyReq *stuff = (xGetPropertyReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->window);
REPLY (" Property");
reply = xDbgGetAtom(stuff->property, evinfo, reply, len);
REPLY ("%67s delete(%s) longOffset(%ld) longLength(%ld)",
" ",
stuff->delete ? "YES" : "NO",
- stuff->longOffset,
- stuff->longLength);
+ (long int)stuff->longOffset,
+ (long int)stuff->longLength);
}
return reply;
case X_SetSelectionOwner:
{
xSetSelectionOwnerReq *stuff = (xSetSelectionOwnerReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->window);
REPLY (" Selection");
reply = xDbgGetAtom(stuff->selection, evinfo, reply, len);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" time(%lums)",
- stuff->time);
+ (unsigned long)stuff->time);
}
return reply;
case X_ConvertSelection:
{
xConvertSelectionReq *stuff = (xConvertSelectionReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->requestor);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->requestor);
REPLY (" Selection");
reply = xDbgGetAtom(stuff->selection, evinfo, reply, len);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" time(%lums)",
- stuff->time);
+ (unsigned long)stuff->time);
}
return reply;
case X_SendEvent:
{
xSendEventReq *stuff = (xSendEventReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->destination);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->destination);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
{
xGrabPointerReq *stuff = (xGrabPointerReq *)req;
- REPLY (": XID(0x%lx) ConfineTo(0x%lx) Cursor(0x%lx)",
- stuff->grabWindow,
- stuff->confineTo,
- stuff->cursor);
+ REPLY (": XID(0x%x) ConfineTo(0x%x) Cursor(0x%x)",
+ (unsigned int)stuff->grabWindow,
+ (unsigned int)stuff->confineTo,
+ (unsigned int)stuff->cursor);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" pointer_mode(%s) keyboard_mode(%s) time(%lums)\n",
pointer_mode,
keyboard_mode,
- stuff->time);
+ (unsigned long)stuff->time);
REPLY (" event_mask");
REPLY ("(");
{
xGrabButtonReq *stuff = (xGrabButtonReq *)req;
- REPLY (": XID(0x%lx) ConfineTo(0x%lx) Cursor(0x%lx)",
- stuff->grabWindow,
- stuff->confineTo,
- stuff->cursor);
+ REPLY (": XID(0x%x) ConfineTo(0x%x) Cursor(0x%x)",
+ (unsigned int)stuff->grabWindow,
+ (unsigned int)stuff->confineTo,
+ (unsigned int)stuff->cursor);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case X_UngrabButton:
{
xUngrabButtonReq *stuff = (xUngrabButtonReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->grabWindow);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->grabWindow);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case X_ChangeActivePointerGrab:
{
xChangeActivePointerGrabReq *stuff = (xChangeActivePointerGrabReq *)req;
- REPLY (": Cursor(0x%lx)",
- stuff->cursor);
+ REPLY (": Cursor(0x%x)",
+ (unsigned int)stuff->cursor);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" time(%lums)",
- stuff->time);
+ (unsigned long)stuff->time);
REPLY (" event_mask");
REPLY ("(");
{
xGrabKeyboardReq *stuff = (xGrabKeyboardReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->grabWindow);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->grabWindow);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
{
xGrabKeyReq *stuff = (xGrabKeyReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->grabWindow);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->grabWindow);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case X_UngrabKey:
{
xUngrabKeyReq *stuff = (xUngrabKeyReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->grabWindow);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->grabWindow);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case X_SetInputFocus:
{
xSetInputFocusReq *stuff = (xSetInputFocusReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->focus);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->focus);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" reverTo(%d) time(%lums)",
stuff->revertTo,
- stuff->time);
+ (unsigned long)stuff->time);
}
return reply;
case X_CreatePixmap:
{
xCreatePixmapReq *stuff = (xCreatePixmapReq *)req;
- REPLY (": Pixmap(0x%lx) Drawable(0x%lx) size(%dx%d)",
- stuff->pid,
- stuff->drawable,
+ REPLY (": Pixmap(0x%x) Drawable(0x%x) size(%dx%d)",
+ (unsigned int)stuff->pid,
+ (unsigned int)stuff->drawable,
stuff->width,
stuff->height);
return reply;
}
+ case X_CreateGC:
+ {
+ xCreateGCReq *stuff = (xCreateGCReq *)req;
+ REPLY (": Gc(0x%x) Drawable(0x%x)",
+ (unsigned int)stuff->gc,
+ (unsigned int)stuff->drawable);
+
+ return reply;
+ }
+
case X_ClearArea:
{
xClearAreaReq *stuff = (xClearAreaReq *)req;
- REPLY (": XID(0x%lx) area(%d,%d %dx%d)",
- stuff->window,
+ REPLY (": XID(0x%x) area(%d,%d %dx%d)",
+ (unsigned int)stuff->window,
stuff->x,
stuff->y,
stuff->width,
case X_CopyArea:
{
xCopyAreaReq *stuff = (xCopyAreaReq *)req;
- REPLY (": srcXID(0x%lx) dstXID(0x%lx) gc(0x%lx) size(%dx%d) src(%d,%d) dst(%d,%d)",
- stuff->srcDrawable,
- stuff->dstDrawable,
- stuff->gc,
+ REPLY (": srcXID(0x%x) dstXID(0x%x) gc(0x%x) size(%dx%d) src(%d,%d) dst(%d,%d)",
+ (unsigned int)stuff->srcDrawable,
+ (unsigned int)stuff->dstDrawable,
+ (unsigned int)stuff->gc,
stuff->width,
stuff->height,
stuff->srcX,
case X_CopyPlane:
{
xCopyPlaneReq *stuff = (xCopyPlaneReq *)req;
- REPLY (": srcXID(0x%lx) dstXID(0x%lx) gc(0x%lx) size(%dx%d) src(%d,%d) dst(%d,%d)",
- stuff->srcDrawable,
- stuff->dstDrawable,
- stuff->gc,
+ REPLY (": srcXID(0x%x) dstXID(0x%x) gc(0x%x) size(%dx%d) src(%d,%d) dst(%d,%d)",
+ (unsigned int)stuff->srcDrawable,
+ (unsigned int)stuff->dstDrawable,
+ (unsigned int)stuff->gc,
stuff->width,
stuff->height,
stuff->srcX,
if (detail_level >= EVLOG_PRINT_DETAIL)
{
- REPLY (" bit_plane(0x%lx)",
- stuff->bitPlane);
+ REPLY (" bit_plane(0x%x)",
+ (unsigned int)stuff->bitPlane);
}
return reply;
case X_PolyPoint:
{
xPolyPointReq *stuff = (xPolyPointReq *)req;
- REPLY (": XID(0x%lx) gc(0x%lx)",
- stuff->drawable,
- stuff->gc);
+ REPLY (": XID(0x%x) gc(0x%x)",
+ (unsigned int)stuff->drawable,
+ (unsigned int)stuff->gc);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case X_PolyLine:
{
xPolyLineReq *stuff = (xPolyLineReq *)req;
- REPLY (": XID(0x%lx gc(0x%lx)",
- stuff->drawable,
- stuff->gc);
+ REPLY (": XID(0x%x gc(0x%x)",
+ (unsigned int)stuff->drawable,
+ (unsigned int)stuff->gc);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case X_PolySegment:
{
xPolySegmentReq *stuff = (xPolySegmentReq *)req;
- REPLY (": XID(0x%lx) gc(0x%lx)",
- stuff->drawable,
- stuff->gc);
+ REPLY (": XID(0x%x) gc(0x%x)",
+ (unsigned int)stuff->drawable,
+ (unsigned int)stuff->gc);
return reply;
}
case X_PolyRectangle:
{
xPolyRectangleReq *stuff = (xPolyRectangleReq *)req;
- REPLY (": XID(0x%lx) gc(0x%lx)",
- stuff->drawable,
- stuff->gc);
+ REPLY (": XID(0x%x) gc(0x%x)",
+ (unsigned int)stuff->drawable,
+ (unsigned int)stuff->gc);
return reply;
}
case X_PolyArc:
{
xPolyArcReq *stuff = (xPolyArcReq *)req;
- REPLY (": XID(0x%lx) gc(0x%lx)",
- stuff->drawable,
- stuff->gc);
+ REPLY (": XID(0x%x) gc(0x%x)",
+ (unsigned int)stuff->drawable,
+ (unsigned int)stuff->gc);
return reply;
}
case X_FillPoly:
{
xFillPolyReq *stuff = (xFillPolyReq *)req;
- REPLY (": XID(0x%lx) gc(0x%lx)",
- stuff->drawable,
- stuff->gc);
+ REPLY (": XID(0x%x) gc(0x%x)",
+ (unsigned int)stuff->drawable,
+ (unsigned int)stuff->gc);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case X_PolyFillRectangle:
{
xPolyFillRectangleReq *stuff = (xPolyFillRectangleReq *)req;
- REPLY (": XID(0x%lx) gc(0x%lx)",
- stuff->drawable,
- stuff->gc);
+ REPLY (": XID(0x%x) gc(0x%x)",
+ (unsigned int)stuff->drawable,
+ (unsigned int)stuff->gc);
return reply;
}
case X_PolyFillArc:
{
xPolyFillArcReq *stuff = (xPolyFillArcReq *)req;
- REPLY (": XID(0x%lx) gc(0x%lx)",
- stuff->drawable,
- stuff->gc);
+ REPLY (": XID(0x%x) gc(0x%x)",
+ (unsigned int)stuff->drawable,
+ (unsigned int)stuff->gc);
return reply;
}
case X_PutImage:
{
xPutImageReq *stuff = (xPutImageReq *)req;
- REPLY (": XID(0x%lx) gc(0x%lx) size(%dx%d) dst(%d,%d)",
- stuff->drawable,
- stuff->gc,
+ REPLY (": XID(0x%x) gc(0x%x) size(%dx%d) dst(%d,%d)",
+ (unsigned int)stuff->drawable,
+ (unsigned int)stuff->gc,
stuff->width,
stuff->height,
stuff->dstX,
case X_GetImage:
{
xGetImageReq *stuff = (xGetImageReq *)req;
- REPLY (": XID(0x%lx) size(%dx%d) dst(%d,%d)",
- stuff->drawable,
+ REPLY (": XID(0x%x) size(%dx%d) dst(%d,%d)",
+ (unsigned int)stuff->drawable,
stuff->width,
stuff->height,
stuff->x,
default: format = dformat; snprintf (dformat, 10, "%d", stuff->format); break;
}
- REPLY (" format(%s) plane_mask(0x%lx)",
+ REPLY (" format(%s) plane_mask(0x%x)",
format,
- stuff->planeMask);
+ (unsigned int)stuff->planeMask);
}
return reply;
case X_PolyText8:
{
xPolyText8Req *stuff = (xPolyText8Req *)req;
- REPLY (": XID(0x%lx) gc(0x%lx) coord(%d,%d)",
- stuff->drawable,
- stuff->gc,
+ REPLY (": XID(0x%x) gc(0x%x) coord(%d,%d)",
+ (unsigned int)stuff->drawable,
+ (unsigned int)stuff->gc,
stuff->x,
stuff->y);
case X_PolyText16:
{
xPolyText16Req *stuff = (xPolyText16Req *)req;
- REPLY (": XID(0x%lx) gc(0x%lx) coord(%d,%d)",
- stuff->drawable,
- stuff->gc,
+ REPLY (": XID(0x%x) gc(0x%x) coord(%d,%d)",
+ (unsigned int)stuff->drawable,
+ (unsigned int)stuff->gc,
stuff->x,
stuff->y);
case X_ImageText8:
{
xImageText8Req *stuff = (xImageText8Req *)req;
- REPLY (": XID(0x%lx) gc(0x%lx) coord(%d,%d)",
- stuff->drawable,
- stuff->gc,
+ REPLY (": XID(0x%x) gc(0x%x) coord(%d,%d)",
+ (unsigned int)stuff->drawable,
+ (unsigned int)stuff->gc,
stuff->x,
stuff->y);
case X_ImageText16:
{
xImageText16Req *stuff = (xImageText16Req *)req;
- REPLY (": XID(0x%lx) gc(0x%lx) coord(%d,%d)",
- stuff->drawable,
- stuff->gc,
+ REPLY (": XID(0x%x) gc(0x%x) coord(%d,%d)",
+ (unsigned int)stuff->drawable,
+ (unsigned int)stuff->gc,
stuff->x,
stuff->y);
case X_UngrabKeyboard:
case X_FreePixmap:
case X_KillClient:
+ case X_FreeGC:
{
xResourceReq *stuff = (xResourceReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->id);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->id);
return reply;
}
case ButtonRelease:
case MotionNotify:
{
- REPLY (": Root(0x%lx %d,%d) Event(0x%lx %d,%d) Child(0x%lx)",
- evt->u.keyButtonPointer.root,
+ REPLY (": Root(0x%x %d,%d) Event(0x%x %d,%d) Child(0x%x)",
+ (unsigned int)evt->u.keyButtonPointer.root,
evt->u.keyButtonPointer.rootX,
evt->u.keyButtonPointer.rootY,
- evt->u.keyButtonPointer.event,
+ (unsigned int)evt->u.keyButtonPointer.event,
evt->u.keyButtonPointer.eventX,
evt->u.keyButtonPointer.eventY,
- evt->u.keyButtonPointer.child);
+ (unsigned int)evt->u.keyButtonPointer.child);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case EnterNotify:
case LeaveNotify:
{
- REPLY (": Root(0x%lx %d,%d) Event(0x%lx %d,%d) Child(0x%lx)",
- evt->u.enterLeave.root,
+ REPLY (": Root(0x%x %d,%d) Event(0x%x %d,%d) Child(0x%x)",
+ (unsigned int)evt->u.enterLeave.root,
evt->u.enterLeave.rootX,
evt->u.enterLeave.rootY,
- evt->u.enterLeave.event,
+ (unsigned int)evt->u.enterLeave.event,
evt->u.enterLeave.eventX,
evt->u.enterLeave.eventY,
- evt->u.enterLeave.child);
+ (unsigned int)evt->u.enterLeave.child);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY ("\n");
REPLY ("%67s time(%lums) state(0x%x) same_screen(%s) focus(%s)",
" ",
- evt->u.enterLeave.time,
+ (unsigned long)evt->u.enterLeave.time,
evt->u.enterLeave.state,
evt->u.enterLeave.flags & ELFlagSameScreen ? "YES" : "NO",
evt->u.enterLeave.flags & ELFlagFocus ? "YES" : "NO");
case FocusOut:
case KeymapNotify:
{
- REPLY (": XID(0x%lx)",
- evt->u.focus.window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)evt->u.focus.window);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case Expose:
{
- REPLY (": XID(0x%lx) size(%dx%d) coord(%d,%d)",
- evt->u.expose.window,
+ REPLY (": XID(0x%x) size(%dx%d) coord(%d,%d)",
+ (unsigned int)evt->u.expose.window,
evt->u.expose.width,
evt->u.expose.height,
evt->u.expose.x,
case GraphicsExpose:
{
- REPLY (": XID(0x%lx) size(%dx%d) coord(%d,%d)",
- evt->u.graphicsExposure.drawable,
+ REPLY (": XID(0x%x) size(%dx%d) coord(%d,%d)",
+ (unsigned int)evt->u.graphicsExposure.drawable,
evt->u.graphicsExposure.width,
evt->u.graphicsExposure.height,
evt->u.graphicsExposure.x,
case NoExpose:
{
- REPLY (": XID(0x%lx)",
- evt->u.noExposure.drawable);
+ REPLY (": XID(0x%x)",
+ (unsigned int)evt->u.noExposure.drawable);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case VisibilityNotify:
{
- REPLY (": XID(0x%lx)",
- evt->u.visibility.window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)evt->u.visibility.window);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case CreateNotify:
{
- REPLY (": Window(0x%lx) Parent(0x%lx) size(%dx%d) coord(%d,%d) borderWidth(%d)",
- evt->u.createNotify.window,
- evt->u.createNotify.parent,
+ REPLY (": Window(0x%x) Parent(0x%x) size(%dx%d) coord(%d,%d) borderWidth(%d)",
+ (unsigned int)evt->u.createNotify.window,
+ (unsigned int)evt->u.createNotify.parent,
evt->u.createNotify.width,
evt->u.createNotify.height,
evt->u.createNotify.x,
case DestroyNotify:
{
- REPLY (": Window(0x%lx) Event(0x%lx)",
- evt->u.destroyNotify.window,
- evt->u.destroyNotify.event);
+ REPLY (": Window(0x%x) Event(0x%x)",
+ (unsigned int)evt->u.destroyNotify.window,
+ (unsigned int)evt->u.destroyNotify.event);
return reply;
}
case UnmapNotify:
{
- REPLY (": Window(0x%lx) Event(0x%lx)",
- evt->u.unmapNotify.window,
- evt->u.unmapNotify.event);
+ REPLY (": Window(0x%x) Event(0x%x)",
+ (unsigned int)evt->u.unmapNotify.window,
+ (unsigned int)evt->u.unmapNotify.event);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case MapNotify:
{
- REPLY (": Window(0x%lx) Event(0x%lx)",
- evt->u.mapNotify.window,
- evt->u.mapNotify.event);
+ REPLY (": Window(0x%x) Event(0x%x)",
+ (unsigned int)evt->u.mapNotify.window,
+ (unsigned int)evt->u.mapNotify.event);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case MapRequest:
{
- REPLY (": Window(0x%lx) Parent(0x%lx)",
- evt->u.mapRequest.window,
- evt->u.mapRequest.parent);
+ REPLY (": Window(0x%x) Parent(0x%x)",
+ (unsigned int)evt->u.mapRequest.window,
+ (unsigned int)evt->u.mapRequest.parent);
return reply;
}
case ReparentNotify:
{
- REPLY (": Window(0x%lx) Event(0x%lx) Parent(0x%lx) coord(%d,%d)",
- evt->u.reparent.window,
- evt->u.reparent.event,
- evt->u.reparent.parent,
+ REPLY (": Window(0x%x) Event(0x%x) Parent(0x%x) coord(%d,%d)",
+ (unsigned int)evt->u.reparent.window,
+ (unsigned int)evt->u.reparent.event,
+ (unsigned int)evt->u.reparent.parent,
evt->u.reparent.x,
evt->u.reparent.y);
case ConfigureNotify:
{
- REPLY (": Window(0x%lx) Event(0x%lx) AboveSibling(0x%lx) size(%dx%d) coord(%d,%d) borderWidth(%d)",
- evt->u.configureNotify.window,
- evt->u.configureNotify.event,
- evt->u.configureNotify.aboveSibling,
+ REPLY (": Window(0x%x) Event(0x%x) AboveSibling(0x%x) size(%dx%d) coord(%d,%d) borderWidth(%d)",
+ (unsigned int)evt->u.configureNotify.window,
+ (unsigned int)evt->u.configureNotify.event,
+ (unsigned int)evt->u.configureNotify.aboveSibling,
evt->u.configureNotify.width,
evt->u.configureNotify.height,
evt->u.configureNotify.x,
case ConfigureRequest:
{
- REPLY (": Window(0x%lx) Parent(0x%lx) Sibling(0x%lx) size(%dx%d) coord(%d,%d) borderWidth(%d)",
- evt->u.configureRequest.window,
- evt->u.configureRequest.parent,
- evt->u.configureRequest.sibling,
+ REPLY (": Window(0x%x) Parent(0x%x) Sibling(0x%x) size(%dx%d) coord(%d,%d) borderWidth(%d)",
+ (unsigned int)evt->u.configureRequest.window,
+ (unsigned int)evt->u.configureRequest.parent,
+ (unsigned int)evt->u.configureRequest.sibling,
evt->u.configureRequest.width,
evt->u.configureRequest.height,
evt->u.configureRequest.x,
case GravityNotify:
{
- REPLY (": Window(0x%lx) Event(0x%lx) coord(%d,%d)",
- evt->u.gravity.window,
- evt->u.gravity.event,
+ REPLY (": Window(0x%x) Event(0x%x) coord(%d,%d)",
+ (unsigned int)evt->u.gravity.window,
+ (unsigned int)evt->u.gravity.event,
evt->u.gravity.x,
evt->u.gravity.y);
case ResizeRequest:
{
- REPLY (": Window(0x%lx) size(%dx%d)",
- evt->u.resizeRequest.window,
+ REPLY (": Window(0x%x) size(%dx%d)",
+ (unsigned int)evt->u.resizeRequest.window,
evt->u.resizeRequest.width,
evt->u.resizeRequest.height);
case CirculateNotify:
case CirculateRequest:
{
- REPLY (": Window(0x%lx) Event(0x%lx) parent(0x%lx)",
- evt->u.circulate.window,
- evt->u.circulate.event,
- evt->u.circulate.parent);
+ REPLY (": Window(0x%x) Event(0x%x) parent(0x%x)",
+ (unsigned int)evt->u.circulate.window,
+ (unsigned int)evt->u.circulate.event,
+ (unsigned int)evt->u.circulate.parent);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case PropertyNotify:
{
- REPLY (": Window(0x%lx)",
- evt->u.property.window);
+ REPLY (": Window(0x%x)",
+ (unsigned int)evt->u.property.window);
REPLY (" Property");
reply = xDbgGetAtom(evt->u.property.atom, evinfo, reply, len);
REPLY ("\n");
REPLY ("%67s time(%lums) state(%s)",
" ",
- evt->u.property.time,
+ (unsigned long)evt->u.property.time,
state);
}
case SelectionClear:
{
- REPLY (": Window(0x%lx)",
- evt->u.selectionClear.window);
+ REPLY (": Window(0x%x)",
+ (unsigned int)evt->u.selectionClear.window);
REPLY (" Atom");
reply = xDbgGetAtom(evt->u.selectionClear.atom, evinfo, reply, len);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" time(%lums)",
- evt->u.selectionClear.time);
+ (unsigned long)evt->u.selectionClear.time);
}
return reply;
case SelectionRequest:
{
- REPLY (": Owner(0x%lx) Requestor(0x%lx)",
- evt->u.selectionRequest.owner,
- evt->u.selectionRequest.requestor);
+ REPLY (": Owner(0x%x) Requestor(0x%x)",
+ (unsigned int)evt->u.selectionRequest.owner,
+ (unsigned int)evt->u.selectionRequest.requestor);
REPLY (" selection");
reply = xDbgGetAtom(evt->u.selectionRequest.selection, evinfo, reply, len);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" time(%lums)",
- evt->u.selectionRequest.time);
+ (unsigned long)evt->u.selectionRequest.time);
}
return reply;
case SelectionNotify:
{
- REPLY (": Requestor(0x%lx)",
- evt->u.selectionNotify.requestor);
+ REPLY (": Requestor(0x%x)",
+ (unsigned int)evt->u.selectionNotify.requestor);
REPLY (" selection");
reply = xDbgGetAtom(evt->u.selectionNotify.selection, evinfo, reply, len);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" time(%lums)",
- evt->u.selectionNotify.time);
+ (unsigned long)evt->u.selectionNotify.time);
}
return reply;
case ColormapNotify:
{
- REPLY (": XID(0x%lx) Colormap(0x%lx)",
- evt->u.colormap.window,
- evt->u.colormap.colormap);
+ REPLY (": XID(0x%x) Colormap(0x%x)",
+ (unsigned int)evt->u.colormap.window,
+ (unsigned int)evt->u.colormap.colormap);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
case ClientMessage:
{
- REPLY (": XID(0x%lx)",
- evt->u.clientMessage.window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)evt->u.clientMessage.window);
REPLY (" Type");
reply = xDbgGetAtom(evt->u.clientMessage.u.b.type, evinfo, reply, len);
{
xGetGeometryReply *stuff = (xGetGeometryReply *)rep;
- REPLY (": XID(0x%lx) coord(%d,%d %dx%d) borderWidth(%d)",
- stuff->root,
+ REPLY (": XID(0x%x) coord(%d,%d %dx%d) borderWidth(%d)",
+ (unsigned int)stuff->root,
stuff->x,
stuff->y,
stuff->width,
{
xQueryTreeReply *stuff = (xQueryTreeReply *)rep;
- REPLY (": XID(0x%lx) Parent(0x%lx) ChildrenNum(%d)",
- stuff->root,
- stuff->parent,
+ REPLY (": XID(0x%x) Parent(0x%x) ChildrenNum(%d)",
+ (unsigned int)stuff->root,
+ (unsigned int)stuff->parent,
stuff->nChildren);
}
else
REPLY ("(");
for (i = 0 ; i < evinfo->rep.size / sizeof(Window) ; i++)
{
- REPLY("0x%lx", stuff[i]);
+ REPLY("0x%x", (unsigned int)stuff[i]);
if(i != evinfo->rep.size / sizeof(Window) - 1)
REPLY (", ");
}
REPLY (": PropertyType");
reply = xDbgGetAtom(stuff->propertyType, evinfo, reply, len);
- REPLY (" bytesAfter(0x%lx) format(%d) ItemNum(%ld)",
- stuff->bytesAfter,
+ REPLY (" bytesAfter(0x%x) format(%d) ItemNum(%ld)",
+ (unsigned int)stuff->bytesAfter,
stuff->format,
- stuff->nItems);
+ (long int)stuff->nItems);
}
else
{
{
xGetImageReply *stuff = (xGetImageReply *)rep;
- REPLY (": XID(0x%lx)",
- stuff->visual);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->visual);
}
else
{
}
return reply;
-}
+}
\ No newline at end of file