summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2015-08-13 13:11:31 +0100
committerAdam Jackson <ajax@redhat.com>2015-09-24 13:21:01 -0400
commit9ee05c8987245350976ebc0df4953c60da6bcc70 (patch)
tree2b64c4dde05d296996f99cf78a962c458d1406e8
parentfe253296035277f7a3adfad6eb239fee41714d22 (diff)
debug output format fix in RRMonitorCrtcName()
xorg/xserver/randr/rrmonitor.c:35:5: error: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘RRCrtc’ [-Werror=format=] RRCrtc is XID is CARD32, which inside the server is unsigned long or int depending on architecture, so a cast is required. Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r--randr/rrmonitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/randr/rrmonitor.c b/randr/rrmonitor.c
index 05285ddfd..c37dcf8ab 100644
--- a/randr/rrmonitor.c
+++ b/randr/rrmonitor.c
@@ -32,7 +32,7 @@ RRMonitorCrtcName(RRCrtcPtr crtc)
RROutputPtr output = crtc->outputs[0];
return MakeAtom(output->name, output->nameLength, TRUE);
}
- sprintf(name, "Monitor-%08x", crtc->id);
+ sprintf(name, "Monitor-%08lx", (unsigned long int)crtc->id);
return MakeAtom(name, strlen(name), TRUE);
}