From 43d6ef7f160baef600be04bf832cd06abda4af7e Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 11 May 2001 03:07:53 +0000 Subject: [PATCH] change env variable to G_MESSAGES_PREFIXED, suggested by Tim 2001-05-10 Havoc Pennington * gmessages.c (g_log_write_prefix): change env variable to G_MESSAGES_PREFIXED, suggested by Tim --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib/gmessages.c | 8 ++++---- gmessages.c | 8 ++++---- 10 files changed, 48 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index d4f5b0b2..18eeaf6b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-05-10 Havoc Pennington + + * gmessages.c (g_log_write_prefix): change env variable to + G_MESSAGES_PREFIXED, suggested by Tim + Thu May 10 15:19:01 2001 Tim Janik * gscanner.c (g_scanner_key_hash): use g_str_hash() algorithm diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index d4f5b0b2..18eeaf6b 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2001-05-10 Havoc Pennington + + * gmessages.c (g_log_write_prefix): change env variable to + G_MESSAGES_PREFIXED, suggested by Tim + Thu May 10 15:19:01 2001 Tim Janik * gscanner.c (g_scanner_key_hash): use g_str_hash() algorithm diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d4f5b0b2..18eeaf6b 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2001-05-10 Havoc Pennington + + * gmessages.c (g_log_write_prefix): change env variable to + G_MESSAGES_PREFIXED, suggested by Tim + Thu May 10 15:19:01 2001 Tim Janik * gscanner.c (g_scanner_key_hash): use g_str_hash() algorithm diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index d4f5b0b2..18eeaf6b 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2001-05-10 Havoc Pennington + + * gmessages.c (g_log_write_prefix): change env variable to + G_MESSAGES_PREFIXED, suggested by Tim + Thu May 10 15:19:01 2001 Tim Janik * gscanner.c (g_scanner_key_hash): use g_str_hash() algorithm diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index d4f5b0b2..18eeaf6b 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2001-05-10 Havoc Pennington + + * gmessages.c (g_log_write_prefix): change env variable to + G_MESSAGES_PREFIXED, suggested by Tim + Thu May 10 15:19:01 2001 Tim Janik * gscanner.c (g_scanner_key_hash): use g_str_hash() algorithm diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index d4f5b0b2..18eeaf6b 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2001-05-10 Havoc Pennington + + * gmessages.c (g_log_write_prefix): change env variable to + G_MESSAGES_PREFIXED, suggested by Tim + Thu May 10 15:19:01 2001 Tim Janik * gscanner.c (g_scanner_key_hash): use g_str_hash() algorithm diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d4f5b0b2..18eeaf6b 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2001-05-10 Havoc Pennington + + * gmessages.c (g_log_write_prefix): change env variable to + G_MESSAGES_PREFIXED, suggested by Tim + Thu May 10 15:19:01 2001 Tim Janik * gscanner.c (g_scanner_key_hash): use g_str_hash() algorithm diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d4f5b0b2..18eeaf6b 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2001-05-10 Havoc Pennington + + * gmessages.c (g_log_write_prefix): change env variable to + G_MESSAGES_PREFIXED, suggested by Tim + Thu May 10 15:19:01 2001 Tim Janik * gscanner.c (g_scanner_key_hash): use g_str_hash() algorithm diff --git a/glib/gmessages.c b/glib/gmessages.c index 3cfaa52a..3a4aa33f 100644 --- a/glib/gmessages.c +++ b/glib/gmessages.c @@ -155,16 +155,16 @@ g_log_write_prefix (gint fd, GLogLevelFlags mask) { static GLogLevelFlags g_log_msg_prefix = G_LOG_LEVEL_ERROR | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_DEBUG; - static gboolean initted = FALSE; + static gboolean initialized = FALSE; g_mutex_lock (g_messages_lock); - if (!initted) + if (!initialized) { const gchar *val; - initted = TRUE; + initialized = TRUE; - val = g_getenv ("G_PREFIX_MESSAGES"); + val = g_getenv ("G_MESSAGES_PREFIXED"); if (val) { diff --git a/gmessages.c b/gmessages.c index 3cfaa52a..3a4aa33f 100644 --- a/gmessages.c +++ b/gmessages.c @@ -155,16 +155,16 @@ g_log_write_prefix (gint fd, GLogLevelFlags mask) { static GLogLevelFlags g_log_msg_prefix = G_LOG_LEVEL_ERROR | G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL | G_LOG_LEVEL_DEBUG; - static gboolean initted = FALSE; + static gboolean initialized = FALSE; g_mutex_lock (g_messages_lock); - if (!initted) + if (!initialized) { const gchar *val; - initted = TRUE; + initialized = TRUE; - val = g_getenv ("G_PREFIX_MESSAGES"); + val = g_getenv ("G_MESSAGES_PREFIXED"); if (val) { -- 2.34.1