summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorCarl Worth <[email protected]>2012-02-03 16:14:23 -0800
committerCarl Worth <[email protected]>2012-02-08 17:07:53 -0800
commitc09504c343d904dc8c135c9b7241e8315c134d0f (patch)
treef7ab9ec8bbe0daa6e6373fa6dd8c5cd394dec3e7 /src/glx
parent5497cc428fa7c6670d252d34f4a67c9498ae3895 (diff)
dri: Clarify comments on InfoMessageF and ErrorMessageF macros.
The description of ErrorMessageF was misleading in the case of LIBGL_DEBUG being unset, (the previous comment could be understood to mean the error should be printed, but the code does not print in this case). InfoMessageF previously had no comment at all. Reviewed-by: Eugeni Dodonov <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/dri_common.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c
index ed0b134f00b..5096c1f587e 100644
--- a/src/glx/dri_common.c
+++ b/src/glx/dri_common.c
@@ -48,6 +48,10 @@
#define RTLD_GLOBAL 0
#endif
+/**
+ * Print informational message to stderr if LIBGL_DEBUG is set to
+ * "verbose".
+ */
_X_HIDDEN void
InfoMessageF(const char *f, ...)
{
@@ -63,7 +67,8 @@ InfoMessageF(const char *f, ...)
}
/**
- * Print error to stderr, unless LIBGL_DEBUG=="quiet".
+ * Print error message to stderr if LIBGL_DEBUG is set to anything but
+ * "quiet", (do nothing if LIBGL_DEBUG is unset).
*/
_X_HIDDEN void
ErrorMessageF(const char *f, ...)