case X_RRGetScreenSizeRange:
{
xRRGetScreenSizeRangeReq *stuff = (xRRGetScreenSizeRangeReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->window);
return reply;
}
case X_RRSetScreenSize:
{
xRRSetScreenSizeReq *stuff = (xRRSetScreenSizeReq *)req;
- REPLY (": XID(0x%lx) size(%dx%d)",
- stuff->window,
+ REPLY (": XID(0x%x) size(%dx%d)",
+ (unsigned int)stuff->window,
stuff->width,
stuff->height);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" milliSize(%ldx%ld)",
- stuff->widthInMillimeters,
- stuff->heightInMillimeters);
+ (long int)stuff->widthInMillimeters,
+ (long int)stuff->heightInMillimeters);
}
return reply;
case X_RRGetScreenResources:
{
xRRGetScreenResourcesReq *stuff = (xRRGetScreenResourcesReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->window);
return reply;
}
case X_RRGetOutputInfo:
{
xRRGetOutputInfoReq *stuff = (xRRGetOutputInfoReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->output);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->output);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" config_timestamp(%lums)",
- stuff->configTimestamp);
+ (unsigned long)stuff->configTimestamp);
}
return reply;
case X_RRListOutputProperties:
{
xRRListOutputPropertiesReq *stuff = (xRRListOutputPropertiesReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->output);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->output);
return reply;
}
case X_RRQueryOutputProperty:
{
xRRQueryOutputPropertyReq *stuff = (xRRQueryOutputPropertyReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->output);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->output);
REPLY (" Property");
reply = xDbgGetAtom(stuff->property, evinfo, reply, len);
case X_RRConfigureOutputProperty:
{
xRRConfigureOutputPropertyReq *stuff = (xRRConfigureOutputPropertyReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->output);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->output);
REPLY (" Property");
reply = xDbgGetAtom(stuff->property, evinfo, reply, len);
case X_RRChangeOutputProperty:
{
xRRChangeOutputPropertyReq *stuff = (xRRChangeOutputPropertyReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->output);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->output);
REPLY (" Property");
reply = xDbgGetAtom(stuff->property, evinfo, reply, len);
" ",
mode,
stuff->format,
- stuff->nUnits);
+ (long int)stuff->nUnits);
}
return reply;
case X_RRDeleteOutputProperty:
{
xRRDeleteOutputPropertyReq *stuff = (xRRDeleteOutputPropertyReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->output);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->output);
REPLY (" Property");
reply = xDbgGetAtom(stuff->property, evinfo, reply, len);
case X_RRGetOutputProperty:
{
xRRGetOutputPropertyReq *stuff = (xRRGetOutputPropertyReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->output);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->output);
REPLY (" Property");
reply = xDbgGetAtom(stuff->property, evinfo, reply, len);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" longOffset(%ld) longLength(%ld)",
- stuff->longOffset,
- stuff->longLength);
+ (long int)stuff->longOffset,
+ (long int)stuff->longLength);
}
return reply;
case X_RRGetCrtcInfo:
{
xRRGetCrtcInfoReq *stuff = (xRRGetCrtcInfoReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->crtc);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->crtc);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" config_timestamp(%lums)",
- stuff->configTimestamp);
+ (unsigned long)stuff->configTimestamp);
}
return reply;
case X_RRSetCrtcConfig:
{
xRRSetCrtcConfigReq *stuff = (xRRSetCrtcConfigReq *)req;
- REPLY (": XID(0x%lx) coord(%d,%d) ",
- stuff->crtc,
+ REPLY (": XID(0x%x) coord(%d,%d) ",
+ (unsigned int)stuff->crtc,
stuff->x,
stuff->y);
}
REPLY ("\n");
- REPLY ("%67s timestamp(%lums) config_timestamp(%lums) RRmode(0x%lx) rotation(%s)",
+ REPLY ("%67s timestamp(%lums) config_timestamp(%lums) RRmode(0x%x) rotation(%s)",
" ",
- stuff->timestamp,
- stuff->configTimestamp,
- stuff->mode,
+ (unsigned long)stuff->timestamp,
+ (unsigned long)stuff->configTimestamp,
+ (unsigned int)stuff->mode,
rotation);
}
case X_RRGetScreenResourcesCurrent:
{
xRRGetScreenResourcesCurrentReq *stuff = (xRRGetScreenResourcesCurrentReq *)req;
- REPLY (": XID(0x%lx)",
- stuff->window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->window);
return reply;
}
case RRScreenChangeNotify:
{
xRRScreenChangeNotifyEvent *stuff = (xRRScreenChangeNotifyEvent *) evt;
- REPLY (": Root(0x%lx) Window(0x%lx)",
- stuff->root,
- stuff->window);
+ REPLY (": Root(0x%x) Window(0x%x)",
+ (unsigned int)stuff->root,
+ (unsigned int)stuff->window);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
" ",
rotation,
stuff->sequenceNumber,
- stuff->timestamp,
- stuff->configTimestamp);
+ (unsigned long)stuff->timestamp,
+ (unsigned long)stuff->configTimestamp);
}
return reply;
case RRNotify_CrtcChange:
{
xRRCrtcChangeNotifyEvent *stuff = (xRRCrtcChangeNotifyEvent *) evt;
- REPLY (": XID(0x%lx) Crtc(0x%lx) RRmode(0x%lx) new_size(%udx%ud) new_coord(%d,%d)",
- stuff->window,
- stuff->crtc,
- stuff->mode,
+ REPLY (": XID(0x%x) Crtc(0x%x) RRmode(0x%x) new_size(%udx%ud) new_coord(%d,%d)",
+ (unsigned int)stuff->window,
+ (unsigned int)stuff->crtc,
+ (unsigned int)stuff->mode,
stuff->width,
stuff->height,
stuff->x,
" ",
rotation,
stuff->sequenceNumber,
- stuff->timestamp);
+ (unsigned long)stuff->timestamp);
}
return reply;
case RRNotify_OutputChange:
{
xRROutputChangeNotifyEvent *stuff = (xRROutputChangeNotifyEvent *) evt;
- REPLY (": XID(0x%lx) Output(0x%lx) Crtc(0x%lx) RRmode(0x%lx)",
- stuff->window,
- stuff->output,
- stuff->crtc,
- stuff->mode);
+ REPLY (": XID(0x%x) Output(0x%x) Crtc(0x%x) RRmode(0x%x)",
+ (unsigned int)stuff->window,
+ (unsigned int)stuff->output,
+ (unsigned int)stuff->crtc,
+ (unsigned int)stuff->mode);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY ("\n");
REPLY ("%67s timestamp(%lums) config_timestamp(%lums) rotation(%s) connection(%s) subpixel_order(%s)",
" ",
- stuff->timestamp,
- stuff->configTimestamp,
+ (unsigned long)stuff->timestamp,
+ (unsigned long)stuff->configTimestamp,
rotation,
connection,
subpixelOrder);
case RRNotify_OutputProperty:
{
xRROutputPropertyNotifyEvent *stuff = (xRROutputPropertyNotifyEvent *) evt;
- REPLY (": XID(0x%lx) Output(0x%lx)",
- stuff->window,
- stuff->output);
+ REPLY (": XID(0x%x) Output(0x%x)",
+ (unsigned int)stuff->window,
+ (unsigned int)stuff->output);
REPLY (" Property");
reply = xDbgGetAtom(stuff->atom, evinfo, reply, len);
REPLY ("%67s sequence_num(%d) timestamp(%lums) state(%s)",
" ",
stuff->sequenceNumber,
- stuff->timestamp,
+ (unsigned long)stuff->timestamp,
state);
}
case RRNotify_ProviderChange:
{
xRRProviderChangeNotifyEvent *stuff = (xRRProviderChangeNotifyEvent *) evt;
- REPLY (": XID(0x%lx) Provider(0x%lx)",
- stuff->window,
- stuff->provider);
+ REPLY (": XID(0x%x) Provider(0x%x)",
+ (unsigned int)stuff->window,
+ (unsigned int)stuff->provider);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" sequence_num(%d) timestamp(%lums)",
stuff->sequenceNumber,
- stuff->timestamp);
+ (unsigned long)stuff->timestamp);
}
return reply;
case RRNotify_ProviderProperty:
{
xRRProviderPropertyNotifyEvent *stuff = (xRRProviderPropertyNotifyEvent *) evt;
- REPLY (": XID(0x%lx) Provider(0x%lx)",
- stuff->window,
- stuff->provider);
+ REPLY (": XID(0x%x) Provider(0x%x)",
+ (unsigned int)stuff->window,
+ (unsigned int)stuff->provider);
REPLY (" Atom");
reply = xDbgGetAtom(stuff->atom, evinfo, reply, len);
REPLY (" sequence_num(%d) timestamp(%lums) state(%s)",
stuff->sequenceNumber,
- stuff->timestamp,
+ (unsigned long)stuff->timestamp,
state);
}
case RRNotify_ResourceChange:
{
xRRResourceChangeNotifyEvent *stuff = (xRRResourceChangeNotifyEvent *) evt;
- REPLY (": XID(0x%lx)",
- stuff->window);
+ REPLY (": XID(0x%x)",
+ (unsigned int)stuff->window);
if (detail_level >= EVLOG_PRINT_DETAIL)
{
REPLY (" sequence_num(%d) timestamp(%lums)",
stuff->sequenceNumber,
- stuff->timestamp);
+ (unsigned long)stuff->timestamp);
}
return reply;
{
xRRGetScreenResourcesReply *stuff = (xRRGetScreenResourcesReply *)rep;
REPLY (": Timestamp(%ldms) ConfigTimestamp(%ldms) nCrtcs(%d) nOutputs(%d) nModes(%d) nbytesNames(%d)",
- stuff->timestamp,
- stuff->configTimestamp,
+ (long int)stuff->timestamp,
+ (long int)stuff->configTimestamp,
stuff->nCrtcs,
stuff->nOutputs,
stuff->nModes,
REPLY ("(");
for (i = 0 ; i < nCrtcs ; i++)
{
- REPLY ("0x%lx", crtcs[i]);
+ REPLY ("0x%x", (unsigned int)crtcs[i]);
if(i != nCrtcs - 1)
REPLY (", ");
}
REPLY ("(");
for (i = 0 ; i < nOutputs ; i++)
{
- REPLY ("0x%lx", outputs[i]);
+ REPLY ("0x%x", (unsigned int)outputs[i]);
if(i != nOutputs - 1)
REPLY (", ");
}
REPLY ("(");
for (i = 0 ; i < nModes ; i++)
{
- REPLY ("0x%lx %dx%d", modeinfos[i].id, modeinfos[i].width, modeinfos[i].height);
+ REPLY ("0x%x %dx%d", (unsigned int)modeinfos[i].id, modeinfos[i].width, modeinfos[i].height);
if(i != nModes - 1)
REPLY (", ");
}
if (evinfo->rep.isStart)
{
xRRGetOutputInfoReply *stuff = (xRRGetOutputInfoReply *)rep;
- REPLY (": Timestamp(%ldms) Crtc(0x%lx) mmSize(%ldx%ld) nCrtcs(%d) nModes(%d) nPreferred(%d) nClones(%d)",
- stuff->timestamp,
- stuff->crtc,
- stuff->mmWidth,
- stuff->mmHeight,
+ REPLY (": Timestamp(%ldms) Crtc(0x%x) mmSize(%ldx%ld) nCrtcs(%d) nModes(%d) nPreferred(%d) nClones(%d)",
+ (long int)stuff->timestamp,
+ (unsigned int)stuff->crtc,
+ (long int)stuff->mmWidth,
+ (long int)stuff->mmHeight,
stuff->nCrtcs,
stuff->nModes,
stuff->nPreferred,
REPLY ("(");
for (i = 0 ; i < nCrtcs ; i++)
{
- REPLY ("0x%lx", crtcs[i]);
+ REPLY ("0x%x", (unsigned int)crtcs[i]);
if(i != nCrtcs - 1)
REPLY (", ");
}
REPLY ("(");
for (i = 0 ; i < nModes ; i++)
{
- REPLY ("0x%lx", modes[i]);
+ REPLY ("0x%x", (unsigned int)modes[i]);
if(i != nModes - 1)
REPLY (", ");
}
REPLY ("(");
for (i = 0 ; i < nClones ; i++)
{
- REPLY ("0x%lx", clones[i]);
+ REPLY ("0x%x", (unsigned int)clones[i]);
if(i != nClones - 1)
REPLY (", ");
}
reply = xDbgGetAtom(stuff->propertyType, evinfo, reply, len);
REPLY (" bytesAfter(%ld) nItems(%ld)",
- stuff->bytesAfter,
- stuff->nItems);
+ (long int)stuff->bytesAfter,
+ (long int)stuff->nItems);
}
else
{
if (evinfo->rep.isStart)
{
xRRGetCrtcInfoReply *stuff = (xRRGetCrtcInfoReply *)rep;
- REPLY (" Timestamp(%ldms) coord(%d,%d %dx%d) RRmode(0x%lx) rot(%d) rots(%d) nOutput(%d) nPossibleOutput(%d)",
- stuff->timestamp,
+ REPLY (" Timestamp(%ldms) coord(%d,%d %dx%d) RRmode(0x%x) rot(%d) rots(%d) nOutput(%d) nPossibleOutput(%d)",
+ (long int)stuff->timestamp,
stuff->x,
stuff->y,
stuff->width,
stuff->height,
- stuff->mode,
+ (unsigned int)stuff->mode,
stuff->rotation,
stuff->rotations,
stuff->nOutput,
REPLY ("(");
for (i = 0 ; i < nOutput ; i++)
{
- REPLY ("0x%lx", outputs[i]);
+ REPLY ("0x%x", (unsigned int)outputs[i]);
if(i != nOutput - 1)
REPLY (", ");
}
REPLY ("(");
for (i = 0 ; i < nPossibleOutput ; i++)
{
- REPLY ("0x%lx", possible[i]);
+ REPLY ("0x%x", (unsigned int)possible[i]);
if(i != nPossibleOutput - 1)
REPLY (", ");
}
xRRSetCrtcConfigReply *stuff = (xRRSetCrtcConfigReply *)rep;
REPLY (" newTimestamp(%ldms)",
- stuff->newTimestamp);
+ (long int)stuff->newTimestamp);
}
else
{
xRRGetScreenResourcesReply *stuff = (xRRGetScreenResourcesReply *)rep;
REPLY (" Timestamp(%ldms) ConfigTimestamp(%ldms) nCrtcs(%d) nOutputs(%d) nModes(%d) nbytesNames(%d)",
- stuff->timestamp,
- stuff->configTimestamp,
+ (long int)stuff->timestamp,
+ (long int)stuff->configTimestamp,
stuff->nCrtcs,
stuff->nOutputs,
stuff->nModes,
REPLY ("(");
for (i = 0 ; i < nCrtcs ; i++)
{
- REPLY ("0x%lx", crtcs[i]);
+ REPLY ("0x%x", (unsigned int)crtcs[i]);
if(i != nCrtcs - 1)
REPLY (", ");
}
REPLY ("(");
for (i = 0 ; i < nOutputs ; i++)
{
- REPLY ("0x%lx", outputs[i]);
+ REPLY ("0x%x", (unsigned int)outputs[i]);
if(i != nOutputs - 1)
REPLY (", ");
}
REPLY ("(");
for (i = 0 ; i < nModes ; i++)
{
- REPLY ("0x%lx %dx%d", modeinfos[i].id, modeinfos[i].width, modeinfos[i].height);
+ REPLY ("0x%x %dx%d", (unsigned int)modeinfos[i].id, modeinfos[i].width, modeinfos[i].height);
if(i != nModes - 1)
REPLY (", ");
}