Mesa (master): r300g: add 'radeon: ' prefix to error messages in winsys

Marek Olšák mareko at kemper.freedesktop.org
Thu Apr 7 19:39:41 PDT 2011


Module: Mesa
Branch: master
Commit: 9d5de0fcb6ced7a4da85a09ad25dcbc2b21bfdf9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d5de0fcb6ced7a4da85a09ad25dcbc2b21bfdf9

Author: Marek Olšák <maraeo at gmail.com>
Date:   Thu Apr  7 23:36:18 2011 +0200

r300g: add 'radeon: ' prefix to error messages in winsys

---

 src/gallium/winsys/radeon/drm/radeon_drm_bo.c |    8 ++++----
 src/gallium/winsys/radeon/drm/radeon_drm_cs.c |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
index 3d0fcea..2b8ebf9 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_bo.c
@@ -305,10 +305,10 @@ static struct pb_buffer *radeon_bomgr_create_bo(struct pb_manager *_mgr,
 
     if (drmCommandWriteRead(rws->fd, DRM_RADEON_GEM_CREATE,
                             &args, sizeof(args))) {
-        fprintf(stderr, "Failed to allocate :\n");
-        fprintf(stderr, "   size      : %d bytes\n", size);
-        fprintf(stderr, "   alignment : %d bytes\n", desc->alignment);
-        fprintf(stderr, "   domains   : %d\n", args.initial_domain);
+        fprintf(stderr, "radeon: Failed to allocate a buffer:\n");
+        fprintf(stderr, "radeon:    size      : %d bytes\n", size);
+        fprintf(stderr, "radeon:    alignment : %d bytes\n", desc->alignment);
+        fprintf(stderr, "radeon:    domains   : %d\n", args.initial_domain);
         return NULL;
     }
 
diff --git a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
index a506bdc..7576f3a 100644
--- a/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
+++ b/src/gallium/winsys/radeon/drm/radeon_drm_cs.c
@@ -320,7 +320,7 @@ static void radeon_drm_cs_write_reloc(struct r300_winsys_cs *rcs,
     unsigned index = radeon_get_reloc(cs->csc, bo);
 
     if (index == -1) {
-        fprintf(stderr, "r300: Cannot get a relocation in %s.\n", __func__);
+        fprintf(stderr, "radeon: Cannot get a relocation in %s.\n", __func__);
         return;
     }
 



More information about the mesa-commit mailing list