[Openchrome-devel] [PATCH] Tweak debug output : memory allocations are done in bytes.
James Simmons
jsimmons
Wed Mar 7 15:52:11 PST 2012
On Tue, 6 Mar 2012, Xavier Bachelot wrote:
> ---
> src/via_memmgr.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/via_memmgr.c b/src/via_memmgr.c
> index f9d0ed0..ad6aeff 100644
> --- a/src/via_memmgr.c
> +++ b/src/via_memmgr.c
> @@ -115,7 +115,7 @@ drm_bo_alloc(ScrnInfoPtr pScrn, unsigned int size, unsigned int alignment, int d
> obj->handle = drm.index;
> obj->domain = domain;
> obj->size = drm.size;
> - DEBUG(ErrorF("%lu of DRI memory allocated at %lx, handle %lu\n",
> + DEBUG(ErrorF("%lu bytes of DRI memory allocated at %lx, handle %lu\n",
> obj->size, obj->offset, obj->handle));
> break;
> } else
> @@ -139,7 +139,7 @@ drm_bo_alloc(ScrnInfoPtr pScrn, unsigned int size, unsigned int alignment, int d
> obj->handle = args.handle;
> obj->size = args.size;
> obj->domain = domain;
> - DEBUG(ErrorF("%lu of DRI2 memory allocated at %lx, handle %lu\n",
> + DEBUG(ErrorF("%lu bytes of DRI2 memory allocated at %lx, handle %lu\n",
> obj->size, obj->offset, obj->handle));
> break;
> }
> @@ -152,7 +152,7 @@ drm_bo_alloc(ScrnInfoPtr pScrn, unsigned int size, unsigned int alignment, int d
> free(obj);
> obj = NULL;
> }
> - DEBUG(ErrorF("%lu of Linear memory allocated at %lx, handle %lu\n",
> + DEBUG(ErrorF("%lu bytes of linear memory allocated at %lx, handle %lu\n",
> obj->size, obj->offset, obj->handle));
> break;
> }
> --
> 1.7.7.6
>
Reviewd-by: James Simmons <jsimmons at infradead.org>
More information about the Openchrome-devel
mailing list