Deleted Added
full compact
31c31
< __FBSDID("$FreeBSD: stable/11/sys/dev/pty/pty.c 298337 2016-04-20 04:50:33Z cem $");
---
> __FBSDID("$FreeBSD: stable/11/sys/dev/pty/pty.c 303432 2016-07-28 11:43:25Z kib $");
55c55
< static unsigned int pty_warningcnt = 1;
---
> static unsigned pty_warningcnt = 1;
57,58c57,58
< &pty_warningcnt, 0,
< "Warnings that will be triggered upon legacy PTY allocation");
---
> &pty_warningcnt, 0,
> "Warnings that will be triggered upon legacy PTY allocation");
80,85c80
< if (pty_warningcnt > 0) {
< pty_warningcnt--;
< log(LOG_INFO, "pid %d (%s) is using legacy pty devices%s\n",
< td->td_proc->p_pid, td->td_name,
< pty_warningcnt ? "" : " - not logging anymore");
< }
---
> counted_warning(&pty_warningcnt, "is using legacy pty devices");