From: Mark Wielaard Date: Wed, 9 Jul 2025 16:27:17 +0000 (+0200) Subject: Suppress unimplemented fcntl command warning with -q X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aec4871f7c9deed31f5d5606e4f9d07b43a448ec;p=thirdparty%2Fvalgrind.git Suppress unimplemented fcntl command warning with -q LTP tests fcntl13 and fcntl13_64 fail because even with -q valgrind emits warnings about unknown (999) fcntl commands. Don't emit that message with -q, just fail with EINVAL. --- diff --git a/coregrind/m_syswrap/syswrap-linux.c b/coregrind/m_syswrap/syswrap-linux.c index 1eaa2621e..a5e1f9d65 100644 --- a/coregrind/m_syswrap/syswrap-linux.c +++ b/coregrind/m_syswrap/syswrap-linux.c @@ -7202,8 +7202,9 @@ PRE(sys_fcntl) default: PRINT("sys_fcntl[UNKNOWN] ( %" FMT_REGWORD "u, %" FMT_REGWORD "u, %" FMT_REGWORD "u )", ARG1, ARG2, ARG3); - VG_(umsg)("Warning: unimplemented fcntl command: %" FMT_REGWORD "u\n", - ARG2); + if (VG_(clo_verbosity) >= 1) + VG_(umsg)("Warning: unimplemented fcntl command: %" FMT_REGWORD "u\n", + ARG2); SET_STATUS_Failure( VKI_EINVAL ); break; }