svn commit: r303155 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Thu Jul 21 17:59:31 UTC 2016


Author: kib
Date: Thu Jul 21 17:59:30 2016
New Revision: 303155
URL: https://svnweb.freebsd.org/changeset/base/303155

Log:
  Hide counted_warning(9) under #ifdef _KERNEL braces, to allow building
  subr_prf.c in userspace for libsbuf.
  
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/kern/subr_prf.c

Modified: head/sys/kern/subr_prf.c
==============================================================================
--- head/sys/kern/subr_prf.c	Thu Jul 21 17:07:06 2016	(r303154)
+++ head/sys/kern/subr_prf.c	Thu Jul 21 17:59:30 2016	(r303155)
@@ -1196,6 +1196,7 @@ sbuf_hexdump(struct sbuf *sb, const void
 	}
 }
 
+#ifdef _KERNEL
 void
 counted_warning(unsigned *counter, const char *msg)
 {
@@ -1215,3 +1216,4 @@ counted_warning(unsigned *counter, const
 		}
 	}
 }
+#endif


More information about the svn-src-head mailing list