diff --git a/Xext/security.c b/Xext/security.c index cce7c467d..04382ff4d 100644 --- a/Xext/security.c +++ b/Xext/security.c @@ -212,7 +212,7 @@ SecurityDeleteAuthorization(void *value, XID id) CloseDownClient(clients[i]); } - SecurityAudit("revoked authorization ID %d\n", pAuth->id); + SecurityAudit("revoked authorization ID %lu\n", (unsigned long)pAuth->id); free(pAuth); return Success; @@ -549,9 +549,9 @@ ProcSecurityGenerateAuthorization(ClientPtr client) WriteToClient(client, authdata_len, pAuthdata); SecurityAudit - ("client %d generated authorization %d trust %d timeout %d group %d events %d\n", - client->index, pAuth->id, pAuth->trustLevel, pAuth->timeout, - pAuth->group, eventMask); + ("client %d generated authorization %lu trust %d timeout %lu group %lu events %lu\n", + client->index, (unsigned long)pAuth->id, pAuth->trustLevel, (unsigned long)pAuth->timeout, + (unsigned long)pAuth->group, (unsigned long)eventMask); /* the request succeeded; don't call RemoveAuthorization or free pAuth */ return Success; @@ -776,9 +776,9 @@ SecurityResource(CallbackListPtr *pcbl, void *unused, void *calldata) return; } - SecurityAudit("Security: denied client %d access %x to resource 0x%x " + SecurityAudit("Security: denied client %d access %lx to resource 0x%lx " "of client %d on request %s\n", rec->client->index, - requested, rec->id, cid, + (unsigned long)requested, (unsigned long)rec->id, cid, SecurityLookupRequestName(rec->client)); rec->status = BadAccess; /* deny access */ } @@ -858,9 +858,9 @@ SecurityProperty(CallbackListPtr *pcbl, void *unused, void *calldata) if (SecurityDoCheck(subj, obj, requested, allowed) != Success) { SecurityAudit("Security: denied client %d access to property %s " - "(atom 0x%x) window 0x%x of client %d on request %s\n", + "(atom 0x%x) window 0x%lx of client %d on request %s\n", rec->client->index, NameForAtom(name), name, - rec->pWin->drawable.id, wClient(rec->pWin)->index, + (unsigned long)rec->pWin->drawable.id, wClient(rec->pWin)->index, SecurityLookupRequestName(rec->client)); rec->status = BadAccess; } @@ -887,10 +887,10 @@ SecuritySend(CallbackListPtr *pcbl, void *unused, void *calldata) rec->events[i].u.u.type != ClientMessage) { SecurityAudit("Security: denied client %d from sending event " - "of type %s to window 0x%x of client %d\n", + "of type %s to window 0x%lx of client %d\n", rec->client->index, LookupEventName(rec->events[i].u.u.type), - rec->pWin->drawable.id, + (unsigned long)rec->pWin->drawable.id, wClient(rec->pWin)->index); rec->status = BadAccess; return; @@ -911,8 +911,8 @@ SecurityReceive(CallbackListPtr *pcbl, void *unused, void *calldata) return; SecurityAudit("Security: denied client %d from receiving an event " - "sent to window 0x%x of client %d\n", - rec->client->index, rec->pWin->drawable.id, + "sent to window 0x%lx of client %d\n", + rec->client->index, (unsigned long)rec->pWin->drawable.id, wClient(rec->pWin)->index); rec->status = BadAccess; }