aboutsummaryrefslogtreecommitdiffstats
path: root/src/visibility.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-12-08 12:31:07 +0000
committerWerner Koch <[email protected]>2017-12-08 12:31:07 +0000
commitde167fa92d009745c51dae547990845282cbb351 (patch)
treee3c4c2fc6849b844f0aeb958e1222beb774126cf /src/visibility.c
parentcore: Wrap blocking system calls of the spawn functions. (diff)
downloadlibgpg-error-de167fa92d009745c51dae547990845282cbb351.tar.gz
libgpg-error-de167fa92d009745c51dae547990845282cbb351.zip
core: Rename the gpgrt_log_levels enum values.
* src/gpg-error.h.in (gprt_log_levels): Rename to GPGRT_LOGLVL. -- Explicitly naming them and not distinguishing them from the other log constants is a Good Thing anyway. It also helps against the symbol name clash with the GPGRT enum values from gnupg's logging module. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/visibility.c')
-rw-r--r--src/visibility.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/visibility.c b/src/visibility.c
index fb187a5..2039ef7 100644
--- a/src/visibility.c
+++ b/src/visibility.c
@@ -905,7 +905,7 @@ gpgrt_log_info (const char *fmt, ...)
va_list arg_ptr;
va_start (arg_ptr, fmt);
- _gpgrt_logv (GPGRT_LOG_INFO, fmt, arg_ptr);
+ _gpgrt_logv (GPGRT_LOGLVL_INFO, fmt, arg_ptr);
va_end (arg_ptr);
}
@@ -915,7 +915,7 @@ gpgrt_log_error (const char *fmt, ...)
va_list arg_ptr;
va_start (arg_ptr, fmt);
- _gpgrt_logv (GPGRT_LOG_ERROR, fmt, arg_ptr);
+ _gpgrt_logv (GPGRT_LOGLVL_ERROR, fmt, arg_ptr);
va_end (arg_ptr);
}
@@ -925,7 +925,7 @@ gpgrt_log_fatal (const char *fmt, ...)
va_list arg_ptr;
va_start (arg_ptr, fmt);
- _gpgrt_logv (GPGRT_LOG_FATAL, fmt, arg_ptr);
+ _gpgrt_logv (GPGRT_LOGLVL_FATAL, fmt, arg_ptr);
va_end (arg_ptr);
abort (); /* Never called; just to make the compiler happy. */
}
@@ -936,7 +936,7 @@ gpgrt_log_bug (const char *fmt, ...)
va_list arg_ptr;
va_start (arg_ptr, fmt);
- _gpgrt_logv (GPGRT_LOG_BUG, fmt, arg_ptr);
+ _gpgrt_logv (GPGRT_LOGLVL_BUG, fmt, arg_ptr);
va_end (arg_ptr);
abort (); /* Never called; just to make the compiler happy. */
}
@@ -947,7 +947,7 @@ gpgrt_log_debug (const char *fmt, ...)
va_list arg_ptr ;
va_start (arg_ptr, fmt);
- _gpgrt_logv (GPGRT_LOG_DEBUG, fmt, arg_ptr);
+ _gpgrt_logv (GPGRT_LOGLVL_DEBUG, fmt, arg_ptr);
va_end (arg_ptr);
}
@@ -957,7 +957,7 @@ gpgrt_log_debug_string (const char *string, const char *fmt, ...)
va_list arg_ptr ;
va_start (arg_ptr, fmt);
- _gpgrt_logv_internal (GPGRT_LOG_DEBUG, 0, string, NULL, fmt, arg_ptr);
+ _gpgrt_logv_internal (GPGRT_LOGLVL_DEBUG, 0, string, NULL, fmt, arg_ptr);
va_end (arg_ptr);
}
@@ -967,7 +967,7 @@ gpgrt_log_printf (const char *fmt, ...)
va_list arg_ptr;
va_start (arg_ptr, fmt);
- _gpgrt_logv (fmt ? GPGRT_LOG_CONT : GPGRT_LOG_BEGIN, fmt, arg_ptr);
+ _gpgrt_logv (fmt ? GPGRT_LOGLVL_CONT : GPGRT_LOGLVL_BEGIN, fmt, arg_ptr);
va_end (arg_ptr);
}