diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-06 14:11:50 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-06 16:43:24 +0100 |
commit | 0da5cc23b18d4e2473a3b6a571fb49d08bb1dd2d (patch) | |
tree | 49a6a356fa6221cd2c0dac254cd14c191f13626b /src/sna/sna_damage.c | |
parent | 2770655371954413c750b030c9a7135baee302d4 (diff) |
sna: Fix format specifier for mismatching int/long in DBG
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_damage.c')
-rw-r--r-- | src/sna/sna_damage.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sna/sna_damage.c b/src/sna/sna_damage.c index ab693af3..d1ab9034 100644 --- a/src/sna/sna_damage.c +++ b/src/sna/sna_damage.c @@ -415,7 +415,7 @@ static void __sna_damage_reduce(struct sna_damage *damage) assert(damage->mode != DAMAGE_ALL); assert(damage->dirty); - DBG((" reduce: before region.n=%d\n", REGION_NUM_RECTS(region))); + DBG((" reduce: before region.n=%ld\n", REGION_NUM_RECTS(region))); nboxes = damage->embedded_box.size; list_for_each_entry(iter, &damage->embedded_box.list, list) @@ -529,7 +529,7 @@ done: free_list(&damage->embedded_box.list); reset_embedded_box(damage); - DBG((" reduce: after region.n=%d\n", REGION_NUM_RECTS(region))); + DBG((" reduce: after region.n=%ld\n", REGION_NUM_RECTS(region))); } static void damage_union(struct sna_damage *damage, const BoxRec *box) @@ -1251,7 +1251,6 @@ fastcall struct sna_damage *_sna_damage_subtract_boxes(struct sna_damage *damage int dx, int dy) { char damage_buf[1000]; - char region_buf[120]; ErrorF("%s(%s - [(%d,%d), (%d,%d)...x%d])...\n", __FUNCTION__, _debug_describe_damage(damage_buf, sizeof(damage_buf), damage), |