From 71f17d0e941736639b0ab5cc3040437c95fab54f Mon Sep 17 00:00:00 2001 From: Tony Lofthouse Date: Tue, 13 Mar 2012 15:00:52 -0500 Subject: hwc: save some dumpsys log real-estate With the SurfaceFlinger/GraphicBufferAllocator and gralloc HAL state following the HWC overlay, HWC state often scrolls off the screen. Make the layer dump use fewer lines. Ported from p-ics-mr1: 037dac8 hwc: save some dumpsys log real-estate Change-Id: I15d5e411056c57721105ca47b5deddfb496392d4 Signed-off-by: Tony Lofthouse --- hwc/hwc.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/hwc/hwc.c b/hwc/hwc.c index 6277685..5341868 100644 --- a/hwc/hwc.c +++ b/hwc/hwc.c @@ -1778,16 +1778,13 @@ static void omap4_hwc_dump(struct hwc_composer_device *dev, char *buff, int buff struct dss2_ovl_cfg *cfg = &dsscomp->ovls[i].cfg; dump_printf(&log, " layer %d:\n", i); - dump_printf(&log, " enabled: %s\n", - cfg->enabled ? "true" : "false"); - dump_printf(&log, " buff: %p %dx%d stride: %d\n", - hwc_dev->buffers[i], cfg->width, cfg->height, cfg->stride); - dump_printf(&log, " src: (%d,%d) %dx%d\n", - cfg->crop.x, cfg->crop.y, cfg->crop.w, cfg->crop.h); - dump_printf(&log, " dst: (%d,%d) %dx%d\n", - cfg->win.x, cfg->win.y, cfg->win.w, cfg->win.h); - dump_printf(&log, " ix: %d\n", cfg->ix); - dump_printf(&log, " zorder: %d\n\n", cfg->zorder); + dump_printf(&log, " enabled:%s buff:%p %dx%d stride:%d\n", + cfg->enabled ? "true" : "false", hwc_dev->buffers[i], + cfg->width, cfg->height, cfg->stride); + dump_printf(&log, " src:(%d,%d) %dx%d dst:(%d,%d) %dx%d ix:%d zorder:%d\n", + cfg->crop.x, cfg->crop.y, cfg->crop.w, cfg->crop.h, + cfg->win.x, cfg->win.y, cfg->win.w, cfg->win.h, + cfg->ix, cfg->zorder); } if (hwc_dev->blt_policy != BLTPOLICY_DISABLED) { -- cgit v1.1