Deleted Added
full compact
38c38
< __FBSDID("$FreeBSD: stable/11/sys/kern/subr_prf.c 301750 2016-06-09 18:24:51Z cem $");
---
> __FBSDID("$FreeBSD: stable/11/sys/kern/subr_prf.c 303432 2016-07-28 11:43:25Z kib $");
1198a1199,1219
> #ifdef _KERNEL
> void
> counted_warning(unsigned *counter, const char *msg)
> {
> struct thread *td;
> unsigned c;
>
> for (;;) {
> c = *counter;
> if (c == 0)
> break;
> if (atomic_cmpset_int(counter, c, c - 1)) {
> td = curthread;
> log(LOG_INFO, "pid %d (%s) %s%s\n",
> td->td_proc->p_pid, td->td_name, msg,
> c > 1 ? "" : " - not logging anymore");
> break;
> }
> }
> }
> #endif