diff --git a/spa/include/spa/support/log-impl.h b/spa/include/spa/support/log-impl.h index 90dcb3cc5..593ba1f9f 100644 --- a/spa/include/spa/support/log-impl.h +++ b/spa/include/spa/support/log-impl.h @@ -68,9 +68,9 @@ struct { \ } name #define SPA_LOG_IMPL_INIT \ - { { SPA_VERSION_LOG, \ - NULL, \ + { { SPA_VERSION_LOG, \ SPA_LOG_LEVEL_INFO, \ + NULL, \ spa_log_impl_log, \ spa_log_impl_logv,} } diff --git a/spa/include/spa/support/log.h b/spa/include/spa/support/log.h index 99f342c44..703ed7726 100644 --- a/spa/include/spa/support/log.h +++ b/spa/include/spa/support/log.h @@ -50,16 +50,16 @@ struct spa_log { * structure in the future */ #define SPA_VERSION_LOG 0 uint32_t version; - /** - * Extra information about the log - */ - const struct spa_dict *info; - /** * Logging level, everything above this level is not logged */ enum spa_log_level level; + /** + * Extra information about the log + */ + const struct spa_dict *info; + /** * Log a message with the given log level. * diff --git a/spa/plugins/support/logger.c b/spa/plugins/support/logger.c index 6e82c7129..87ba3c219 100644 --- a/spa/plugins/support/logger.c +++ b/spa/plugins/support/logger.c @@ -151,8 +151,8 @@ static void on_trace_event(struct spa_source *source) static const struct spa_log impl_log = { SPA_VERSION_LOG, - NULL, DEFAULT_LOG_LEVEL, + NULL, impl_log_log, impl_log_logv, };