pstat(8): display text for msts/endrun line disciplines
ping. pstat(8) will display text description for the nmea line discipline, but not for msts/endrun. This patch adds support for displaying text for msts and endrun line disciplines in the output of pstat -t. comments? ok? diff --git usr.sbin/pstat/pstat.8 usr.sbin/pstat/pstat.8 index d523b0014..d2631f834 100644 --- usr.sbin/pstat/pstat.8 +++ usr.sbin/pstat/pstat.8 @@ -212,11 +212,17 @@ TTYDISC (see .Xr termios 4 ) , .Ql ppp for PPPDISC (see -.Xr ppp 4 ) -and +.Xr ppp 4 ) , .Ql nmea for NMEADISC (see -.Xr nmea 4 ) . +.Xr nmea 4 ) , +.Ql msts +for MSTSDISC (see +.Xr msts 4 ) , +and +.Ql endrun +for ENDRUNDISC (see +.Xr endrun 4 ) . .El .It Fl v Print the active vnodes. diff --git usr.sbin/pstat/pstat.c usr.sbin/pstat/pstat.c index 1684975c5..986dee90b 100644 --- usr.sbin/pstat/pstat.c +++ usr.sbin/pstat/pstat.c @@ -999,6 +999,12 @@ ttyprt(struct itty *tp) case NMEADISC: (void)printf("nmea\n"); break; + case MSTSDISC: + (void)printf("msts\n"); + break; + case ENDRUNDISC: + (void)printf("endrun\n"); + break; default: (void)printf("%d\n", tp->t_line); break;
Re: [patch] pstat(8): display text for msts/endrun line disciplines
Hi, On 06/09/2019 14:24, Iain R. Learmonth wrote with a patch. I'd really like to see this included in 6.6. Thanks, Iain.
[patch] pstat(8): display text for msts/endrun line disciplines
pstat(8) will display text description for the nmea line discipline, but not for msts/endrun. This patch adds support for displaying text for msts and endrun line disciplines in the output of pstat -t. diff --git usr.sbin/pstat/pstat.8 usr.sbin/pstat/pstat.8 index d523b0014..d2631f834 100644 --- usr.sbin/pstat/pstat.8 +++ usr.sbin/pstat/pstat.8 @@ -212,11 +212,17 @@ TTYDISC (see .Xr termios 4 ) , .Ql ppp for PPPDISC (see -.Xr ppp 4 ) -and +.Xr ppp 4 ) , .Ql nmea for NMEADISC (see -.Xr nmea 4 ) . +.Xr nmea 4 ) , +.Ql msts +for MSTSDISC (see +.Xr msts 4 ) , +and +.Ql endrun +for ENDRUNDISC (see +.Xr endrun 4 ) . .El .It Fl v Print the active vnodes. diff --git usr.sbin/pstat/pstat.c usr.sbin/pstat/pstat.c index 1684975c5..986dee90b 100644 --- usr.sbin/pstat/pstat.c +++ usr.sbin/pstat/pstat.c @@ -999,6 +999,12 @@ ttyprt(struct itty *tp) case NMEADISC: (void)printf("nmea\n"); break; + case MSTSDISC: + (void)printf("msts\n"); + break; + case ENDRUNDISC: + (void)printf("endrun\n"); + break; default: (void)printf("%d\n", tp->t_line); break;