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
This commit is contained in:
Konstantin Belousov 2016-07-21 17:59:30 +00:00
parent 9fe297bbdc
commit 492fe1b774

View File

@ -1196,6 +1196,7 @@ sbuf_hexdump(struct sbuf *sb, const void *ptr, int length, const char *hdr,
}
}
#ifdef _KERNEL
void
counted_warning(unsigned *counter, const char *msg)
{
@ -1215,3 +1216,4 @@ counted_warning(unsigned *counter, const char *msg)
}
}
}
#endif