From fc7f0739d32661617c8c9136aee3021de9d3b667 Mon Sep 17 00:00:00 2001 From: Cary R Date: Sat, 16 May 2020 19:03:25 -0700 Subject: [PATCH] When a FD is passed to vpi_mcd_(v)print return EOF since this is an error --- vvp/vpi_mcd.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vvp/vpi_mcd.cc b/vvp/vpi_mcd.cc index 74f8bd917..ae5fc6390 100644 --- a/vvp/vpi_mcd.cc +++ b/vvp/vpi_mcd.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2012 Stephen G. Tell + * Copyright (c) 2000-2020 Stephen G. Tell * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -190,7 +190,7 @@ vpi_mcd_vprintf(PLI_UINT32 mcd, const char*fmt, va_list ap) bool need_free = false; va_list saved_ap; - if (!IS_MCD(mcd)) return 0; + if (!IS_MCD(mcd)) return EOF; if (vpi_trace) { fprintf(vpi_trace, "vpi_mcd_vprintf(0x%08x, %s, ...);\n",