[Openchrome-devel] [PATCH] Tweak debug output : memory allocations are done in bytes.

Xavier Bachelot xavier
Tue Mar 6 12:45:29 PST 2012


---
 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

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Attached Message Part
Url: http://wiki.openchrome.org/pipermail/openchrome-devel/attachments/20120306/63a9682b/AttachedMessagePart.ksh



More information about the Openchrome-devel mailing list