[PATCH 13/19] qxl_surface: logging: add function name to ErrorF

Alon Levy alevy at redhat.com
Thu May 31 03:24:47 PDT 2012


---
 src/qxl_surface.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/qxl_surface.c b/src/qxl_surface.c
index 976c339..6414351 100644
--- a/src/qxl_surface.c
+++ b/src/qxl_surface.c
@@ -635,7 +635,7 @@ qxl_surface_create (surface_cache_t *    cache,
     
     if ((bpp & 3) != 0)
     {
-	ErrorF ("   Bad bpp: %d (%d)\n", bpp, bpp & 7);
+	ErrorF ("%s: Bad bpp: %d (%d)\n", __FUNCTION__, bpp, bpp & 7);
 	return NULL;
     }
 
@@ -653,13 +653,13 @@ qxl_surface_create (surface_cache_t *    cache,
     
     if (bpp != 8 && bpp != 16 && bpp != 32 && bpp != 24)
     {
-	ErrorF ("   Unknown bpp\n");
+	ErrorF ("%s: Unknown bpp\n", __FUNCTION__);
 	return NULL;
     }
 
     if (width == 0 || height == 0)
     {
-	ErrorF ("   Zero width or height\n");
+	ErrorF ("%s: Zero width or height\n", __FUNCTION__);
 	return NULL;
     }
 
-- 
1.7.10.1



More information about the xorg-devel mailing list