diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-12-01 08:29:47 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-12-01 08:29:47 +0000 |
commit | faef6e5e1ab52819d4e9a19738ec7d8419841613 (patch) | |
tree | 5c4a18dee69fbc9b5574467c6d416574fcd5b986 /src | |
parent | 0bec625cc45eb8de85a5013506cce5f789dc8e45 (diff) |
sna: Clean up DBG compile warnings
Including a potential crash due to using a unspecified string, oops.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_display.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 94a2c8f7..d4aa36b7 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -1719,7 +1719,7 @@ static bool use_shadow(struct sna *sna, xf86CrtcPtr crtc) RRTransformPtr transform; PictTransform crtc_to_fb; struct pict_f_transform f_crtc_to_fb, f_fb_to_crtc; - unsigned long pitch_limit; + unsigned pitch_limit; struct sna_pixmap *priv; BoxRec b; @@ -1912,7 +1912,7 @@ static struct kgem_bo *sna_crtc_attach(xf86CrtcPtr crtc) force_shadow: if (!sna_crtc_enable_shadow(sna, sna_crtc)) { - DBG(("%s: failed to enable crtc shadow\n")); + DBG(("%s: failed to enable crtc shadow\n", __FUNCTION__)); return NULL; } @@ -2522,8 +2522,8 @@ static int plane_details(struct sna *sna, struct plane *p) continue; } - DBG(("%s: prop[%d] .id=%d, .name=%s, .flags=%x, .value=%ld\n", __FUNCTION__, i, - (long)props[i], prop.name, prop.flags, (long)values[i])); + DBG(("%s: prop[%d] .id=%ld, .name=%s, .flags=%x, .value=%ld\n", __FUNCTION__, i, + (long)props[i], prop.name, (unsigned)prop.flags, (long)values[i])); if (strcmp(prop.name, "type") == 0) { type = values[i]; @@ -2597,7 +2597,7 @@ sna_crtc_find_planes(struct sna *sna, struct sna_crtc *crtc) return; } - DBG(("%s: %d planes\n", __FUNCTION__, r.count_planes)); + DBG(("%s: %d planes\n", __FUNCTION__, (int)r.count_planes)); if (r.count_planes > ARRAY_SIZE(stack_planes)) { planes = malloc(sizeof(uint32_t)*r.count_planes); |