]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD syscall: make syscall kenv unhandles actions a -v warning
authorPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 10 Jul 2025 18:40:43 +0000 (20:40 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Thu, 10 Jul 2025 18:40:43 +0000 (20:40 +0200)
Was VG_(unimplemented) which bombs. That's a bit drastic for a syscall intented
to be called directly by users.

coregrind/m_syswrap/syswrap-freebsd.c

index 22053da7f57779055e34216777933e39cd88bc1a..e6e71c78d9aa0c0e0a994d3abfd11b3b5c20fbd1 100644 (file)
@@ -3708,8 +3708,10 @@ PRE(sys_kenv)
    case VKI_KENV_DUMP:
       break;
    default:
-      VG_(message)(Vg_UserMsg, "unhandled kenv cmd %" FMT_REGWORD "u", ARG1);
-      VG_(unimplemented) ("unhandled kenv cmd");
+      if (VG_(clo_verbosity) >= 1) {
+         VG_(umsg)("Warning: unimplemented kenv action: %" FMT_REGWORD "d\n",
+            ARG1);
+      }
       break;
    }
 }