summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-24 12:56:59 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-24 12:56:59 +0000
commit672c6ad8170572c0f2562d5a8381ab2d17fd1e1b (patch)
tree3d40c73fa1551d44a329269f4c0106b79e12c8c8
parent238f3d9bc563950475ee823f844197cf15a909e2 (diff)
sna: Silence the compiler with a few DBG format warnings
The size of the integers being printed changed causing warnings on 32/64 bit. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 9e58d4b0..38000570 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1478,7 +1478,7 @@ inline static unsigned drawable_gc_flags(DrawablePtr draw,
if (fbGetGCPrivate(gc)->and) {
DBG(("%s: read due to rop %d:%x\n",
- __FUNCTION__, gc->alu, fbGetGCPrivate(gc)->and));
+ __FUNCTION__, gc->alu, (unsigned)fbGetGCPrivate(gc)->and));
return MOVE_READ | MOVE_WRITE;
}
@@ -5595,7 +5595,7 @@ sna_poly_line_blt(DrawablePtr drawable,
DDXPointRec last;
int16_t dx, dy;
- DBG(("%s: alu=%d, fg=%08lx\n", __FUNCTION__, gc->alu, pixel));
+ DBG(("%s: alu=%d, fg=%08x\n", __FUNCTION__, gc->alu, (unsigned)pixel));
if (!sna_fill_init_blt(&fill, sna, pixmap, bo, gc->alu, pixel))
return FALSE;
@@ -6049,8 +6049,8 @@ sna_poly_line(DrawablePtr drawable, GCPtr gc,
}
if (gc_is_solid(gc, &color)) {
- DBG(("%s: trying solid fill [%08lx]\n",
- __FUNCTION__, color));
+ DBG(("%s: trying solid fill [%08x]\n",
+ __FUNCTION__, (unsigned)color));
if (data.flags & 4) {
if (sna_drawable_use_gpu_bo(drawable,
@@ -6984,8 +6984,8 @@ sna_poly_segment(DrawablePtr drawable, GCPtr gc, int n, xSegment *seg)
if (gc->lineStyle != LineSolid || gc->lineWidth > 1)
goto spans_fallback;
if (gc_is_solid(gc, &color)) {
- DBG(("%s: trying blt solid fill [%08lx, flags=%x] paths\n",
- __FUNCTION__, color, data.flags));
+ DBG(("%s: trying blt solid fill [%08x, flags=%x] paths\n",
+ __FUNCTION__, (unsigned)color, data.flags));
if (data.flags & 4) {
if (sna_drawable_use_gpu_bo(drawable,