From 460315128bef08f1cd6988350a02e7f7f1783bc0 Mon Sep 17 00:00:00 2001 From: Ludwig Rogiers Date: Fri, 29 May 2020 22:10:22 +1000 Subject: [PATCH] Fix vpi_get_value() error message when passing unsupported vpiHandle. (#2378) --- include/verilated_vpi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/verilated_vpi.cpp b/include/verilated_vpi.cpp index 881d969fc..58ffc047e 100644 --- a/include/verilated_vpi.cpp +++ b/include/verilated_vpi.cpp @@ -1600,8 +1600,8 @@ void vpi_get_value(vpiHandle object, p_vpi_value value_p) { VerilatedVpiError::strFromVpiVal(value_p->format), vop->fullname()); return; } - _VL_VPI_ERROR(__FILE__, __LINE__, "%s: Unsupported format %s", VL_FUNC, - VerilatedVpiError::strFromVpiVal(value_p->format)); + + _VL_VPI_ERROR(__FILE__, __LINE__, "%s: Unsupported vpiHandle (%p)", VL_FUNC, object); } vpiHandle vpi_put_value(vpiHandle object, p_vpi_value value_p, p_vpi_time /*time_p*/,