From c589cf84604faf6874d140a2d868f427dd04f074 Mon Sep 17 00:00:00 2001 From: Andreas Regel Date: Tue, 31 Aug 2021 01:37:53 +0200 Subject: [PATCH] log_deprecated_pkg: fix compilation issues with Cadence tools --- vunit/vhdl/logging/src/log_deprecated_pkg.vhd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vunit/vhdl/logging/src/log_deprecated_pkg.vhd b/vunit/vhdl/logging/src/log_deprecated_pkg.vhd index 82e372232..86b7a9531 100644 --- a/vunit/vhdl/logging/src/log_deprecated_pkg.vhd +++ b/vunit/vhdl/logging/src/log_deprecated_pkg.vhd @@ -101,7 +101,7 @@ package body log_deprecated_pkg is end if; end function; - impure function get_logger_display_handler return log_handler_t is + impure function get_logger_display_handler(logger : logger_t) return log_handler_t is begin for idx in 0 to num_log_handlers(logger) - 1 loop if get_file_name(get_log_handler(logger, idx)) = stdout_file_name then @@ -112,7 +112,7 @@ package body log_deprecated_pkg is return null_log_handler; end function; - impure function get_logger_file_handler return log_handler_t is + impure function get_logger_file_handler(logger : logger_t) return log_handler_t is begin for idx in 0 to num_log_handlers(logger) - 1 loop if get_file_name(get_log_handler(logger, idx)) /= stdout_file_name then @@ -123,14 +123,14 @@ package body log_deprecated_pkg is return null_log_handler; end function; begin - logger_display_handler := get_logger_display_handler; + logger_display_handler := get_logger_display_handler(logger); if new_logger or (logger_display_handler = null_log_handler) then logger_display_handler := new_log_handler(stdout_file_name, real_format(display_format), true); else init_log_handler(logger_display_handler, real_format(display_format), stdout_file_name, true); end if; - logger_file_handler := get_logger_file_handler; + logger_file_handler := get_logger_file_handler(logger); if new_logger or (logger_file_handler = null_log_handler) then logger_file_handler := new_log_handler(file_name, real_format(file_format), false); else