aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/log/logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'lv2/log/logger.h')
-rw-r--r--lv2/log/logger.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/lv2/log/logger.h b/lv2/log/logger.h
index 0c608a6..7d9b005 100644
--- a/lv2/log/logger.h
+++ b/lv2/log/logger.h
@@ -94,11 +94,9 @@ lv2_log_vprintf(LV2_Log_Logger* logger,
const char* fmt,
va_list args)
{
- if (logger && logger->log) {
- return logger->log->vprintf(logger->log->handle, type, fmt, args);
- } else {
- return vfprintf(stderr, fmt, args);
- }
+ return ((logger && logger->log)
+ ? logger->log->vprintf(logger->log->handle, type, fmt, args)
+ : vfprintf(stderr, fmt, args));
}
/** Log an error via lv2_log_vprintf(). */