From 2a7d90ce8b01bd357bff61c6b102cf817aa57034 Mon Sep 17 00:00:00 2001 From: feldergast Date: Tue, 27 Apr 2021 12:03:43 -0600 Subject: [PATCH] Fixed printf warnings. --- src/sst/elements/vanadis/util/vcmpop.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/sst/elements/vanadis/util/vcmpop.h b/src/sst/elements/vanadis/util/vcmpop.h index f0606764b0..a1a604c16d 100644 --- a/src/sst/elements/vanadis/util/vcmpop.h +++ b/src/sst/elements/vanadis/util/vcmpop.h @@ -25,6 +25,23 @@ namespace SST { namespace Vanadis { +inline void register_compare_values_print_msg(uint32_t line, const char* file, const char* func, SST::Output* output, int32_t left_value, int32_t right_value) { + output->verbose(line, file, func, 16, 0, "---> reg-val: %" PRId32 " reg-val: %" PRId32 "\n", left_value, right_value ); +} + +inline void register_compare_values_print_msg(uint64_t line, const char* file, const char* func, SST::Output* output, int64_t left_value, int64_t right_value) { + output->verbose(line, file, func, 16, 0, "---> reg-val: %" PRId64 " reg-val: %" PRId64 "\n", left_value, right_value ); +} + +inline void register_compare_values_print_msg(uint32_t line, const char* file, const char* func, SST::Output* output, uint32_t left_value, uint32_t right_value) { + output->verbose(line, file, func, 16, 0, "---> reg-val: %" PRIu32 " reg-val: %" PRIu32 "\n", left_value, right_value ); +} + +inline void register_compare_values_print_msg(uint64_t line, const char* file, const char* func, SST::Output* output, uint64_t left_value, uint64_t right_value) { + output->verbose(line, file, func, 16, 0, "---> reg-val: %" PRIu64 " reg-val: %" PRIu64 "\n", left_value, right_value ); +} + + template bool registerCompareValues( VanadisRegisterCompareType compareType, VanadisRegisterFile* regFile, @@ -32,7 +49,7 @@ bool registerCompareValues( VanadisRegisterCompareType compareType, SST::Output* output, T left_value, T right_value ) { - output->verbose(CALL_INFO, 16, 0, "---> reg-val: %" PRId64 " reg-val: %" PRId64 "\n", left_value, right_value ); + register_compare_values_print_msg(CALL_INFO, output, left_value, right_value ); bool compare_result = false;