summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-03-10 22:12:39 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-03-10 22:13:25 +0000
commite5f8118bdbc4655d987ab1c52e0a46fa85cc92c4 (patch)
tree12754bc60e384d241b4baa34b4abee6c345bf1bf
parent6ed8570f6aa01fdd4edc3df7585f01083b4a9778 (diff)
sna: DBG compilation fixups
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_blt.c2
-rw-r--r--src/sna/sna_threads.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c
index 26a09443..d1d5ccd4 100644
--- a/src/sna/sna_blt.c
+++ b/src/sna/sna_blt.c
@@ -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);
diff --git a/src/sna/sna_threads.c b/src/sna/sna_threads.c
index 52fa4052..c56f3bc9 100644
--- a/src/sna/sna_threads.c
+++ b/src/sna/sna_threads.c
@@ -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;
}