Skip to content
Browse files

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 <eugeni.dodonov@intel.com>
  • Loading branch information...
1 parent 5497cc4 commit c09504c343d904dc8c135c9b7241e8315c134d0f @cworth-gh cworth-gh committed Feb 3, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/glx/dri_common.c
View
7 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, ...)

0 comments on commit c09504c

Please sign in to comment.
Something went wrong with that request. Please try again.