This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via d9723b14b7ba7dd2eaef8f09fbd3823a25078b94 (commit) from 790141b6485cbea2f016f1d26f88f372b7dc7bfc (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/d9723b14b7ba7dd2eaef8f09fbd3823a25078...
commit d9723b14b7ba7dd2eaef8f09fbd3823a25078b94 Author: Cyril Hrubis metan@ucw.cz Date: Mon Dec 10 21:27:21 2012 +0100
core: GP_Debug.c: Fix code ordering.
The check for GP_DEBUG enviroment variable must be done before we check for current level.
diff --git a/libs/core/GP_Debug.c b/libs/core/GP_Debug.c index 9332828..75a54f3 100644 --- a/libs/core/GP_Debug.c +++ b/libs/core/GP_Debug.c @@ -42,9 +42,6 @@ void GP_DebugPrint(int level, const char *file, const char *function, int line, { int i; - if (level > (int)debug_level) - return; - if (!env_used) { char *level = getenv("GP_DEBUG"); @@ -62,6 +59,9 @@ void GP_DebugPrint(int level, const char *file, const char *function, int line, } } } + + if (level > (int)debug_level) + return;
for (i = 1; i < level; i++) fputc(' ', stderr);
-----------------------------------------------------------------------
Summary of changes: libs/core/GP_Debug.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.