sna: DBG compilation fixups
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 10 Mar 2014 22:12:39 +0000 (22:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 10 Mar 2014 22:13:25 +0000 (22:13 +0000)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_blt.c
src/sna/sna_threads.c

index 26a0944..d1d5ccd 100644 (file)
@@ -2883,7 +2883,7 @@ fastcall static void sna_blt_fill_op_points(struct sna *sna,
        const struct sna_blt_state *blt = &op->base.u.blt;
        struct kgem *kgem = &sna->kgem;
 
-       DBG(("%s: %08x x %d\n", __FUNCTION__, blt->pixel, npoints));
+       DBG(("%s: %08x x %d\n", __FUNCTION__, blt->pixel, n));
 
        if (sna->blt_state.fill_bo != op->base.u.blt.bo[0]->unique_id) {
                sna_blt_fill_begin(sna, blt);
index 52fa405..c56f3bc 100644 (file)
@@ -214,7 +214,7 @@ void sna_threads_wait(void)
                }
 
                if (threads[n].arg != NULL) {
-                       DBG(("%s: thread[%d] died from signal %d\n", __func__, n, (int)threads[n].arg));
+                       DBG(("%s: thread[%d] died from signal %d\n", __func__, n, (int)(intptr_t)threads[n].arg));
                        sna_threads_kill();
                        return;
                }