svn commit: r325853 - stable/11/sys/i386/i386

Konstantin Belousov kib at FreeBSD.org
Wed Nov 15 14:35:43 UTC 2017


Author: kib
Date: Wed Nov 15 14:35:42 2017
New Revision: 325853
URL: https://svnweb.freebsd.org/changeset/base/325853

Log:
  MFC r325553:
  Remove useless DEBUG printfs in i386 sendsig() implementations.

Modified:
  stable/11/sys/i386/i386/machdep.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/i386/i386/machdep.c
==============================================================================
--- stable/11/sys/i386/i386/machdep.c	Wed Nov 15 13:41:03 2017	(r325852)
+++ stable/11/sys/i386/i386/machdep.c	Wed Nov 15 14:35:42 2017	(r325853)
@@ -444,9 +444,6 @@ osendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mas
 	 * Copy the sigframe out to the user's stack.
 	 */
 	if (copyout(&sf, fp, sizeof(*fp)) != 0) {
-#ifdef DEBUG
-		printf("process %ld has trashed its stack\n", (long)p->p_pid);
-#endif
 		PROC_LOCK(p);
 		sigexit(td, SIGILL);
 	}
@@ -573,9 +570,6 @@ freebsd4_sendsig(sig_t catcher, ksiginfo_t *ksi, sigse
 	 * Copy the sigframe out to the user's stack.
 	 */
 	if (copyout(&sf, sfp, sizeof(*sfp)) != 0) {
-#ifdef DEBUG
-		printf("process %ld has trashed its stack\n", (long)p->p_pid);
-#endif
 		PROC_LOCK(p);
 		sigexit(td, SIGILL);
 	}
@@ -739,9 +733,6 @@ sendsig(sig_t catcher, ksiginfo_t *ksi, sigset_t *mask
 	    (xfpusave != NULL && copyout(xfpusave,
 	    (void *)sf.sf_uc.uc_mcontext.mc_xfpustate, xfpusave_len)
 	    != 0)) {
-#ifdef DEBUG
-		printf("process %ld has trashed its stack\n", (long)p->p_pid);
-#endif
 		PROC_LOCK(p);
 		sigexit(td, SIGILL);
 	}


More information about the svn-src-all mailing list