summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1996-06-08 17:12:45 +0000
committernate <nate@FreeBSD.org>1996-06-08 17:12:45 +0000
commit6f17f90cd60ae1ed4bf1e5a24833a04ce13a749c (patch)
treef506b3fbeb3e25ea0540162ca0a20c6868e222a1 /sys/i386
parentcb6ab7f49330fefcb74bd6d9944bc4526e5fc148 (diff)
downloadFreeBSD-src-6f17f90cd60ae1ed4bf1e5a24833a04ce13a749c.zip
FreeBSD-src-6f17f90cd60ae1ed4bf1e5a24833a04ce13a749c.tar.gz
Change the 'sysi86()' function not implemented' printf to be called only
when compiled with -DDIAGNOSTIC. Almost all significant SCO binaries I've run call an unsupported function and run correctly. Given that they aren't needed, the messages only clutter up the logfiles and console.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/ibcs2/ibcs2_sysi86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/i386/ibcs2/ibcs2_sysi86.c b/sys/i386/ibcs2/ibcs2_sysi86.c
index f10f0f9..694dfbe 100644
--- a/sys/i386/ibcs2/ibcs2_sysi86.c
+++ b/sys/i386/ibcs2/ibcs2_sysi86.c
@@ -88,8 +88,10 @@ ibcs2_sysi86(struct proc *p, struct ibcs2_sysi86_args *args, int *retval)
return 0;
default:
+#ifdef DIAGNOSTIC
printf("IBCS2: 'sysi86' function %d(0x%x) "
"not implemented yet\n", SCARG(args, cmd), args->cmd);
+#endif
return EINVAL;
}
}
OpenPOWER on IntegriCloud