From 617413d1af18e7e9e5c76f416263615bbf1174a5 Mon Sep 17 00:00:00 2001 From: Richard Lowe Date: Tue, 12 Mar 2013 19:31:47 -0400 Subject: [PATCH] =?utf8?q?3623=20kstat=20must=20accept=20partial=20stat=20?= =?utf8?q?specification=20Reviewed=20by:=20Theo=20Schlossnagle=20=20Reviewed=20by:=20David=20H=C3=B6ppner=20<0xffea@gmai?= =?utf8?q?l.com>=20Reviewed=20by:=20Gordon=20Ross=20=20Ap?= =?utf8?q?proved=20by:=20Eric=20Schrock=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- usr/src/cmd/stat/kstat/kstat.c | 11 ++--------- usr/src/man/man1m/kstat.1m | 2 +- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/usr/src/cmd/stat/kstat/kstat.c b/usr/src/cmd/stat/kstat/kstat.c index 2165101ac9..6f9ef1260c 100644 --- a/usr/src/cmd/stat/kstat/kstat.c +++ b/usr/src/cmd/stat/kstat/kstat.c @@ -33,7 +33,6 @@ * * Incompatibilities: * - perl regular expressions replaced with extended REs bracketed by '/' - * - options checking is stricter * * Flags added: * -C similar to the -p option but value is separated by a colon @@ -255,12 +254,6 @@ main(int argc, char **argv) } } - if (m < 4) { - free(uselector); - usage(); - exit(2); - } - uselflg = B_TRUE; list_insert_tail(&selector_list, uselector); } else { @@ -297,7 +290,7 @@ main(int argc, char **argv) if (uselflg) { if (nselflg) { (void) fprintf(stderr, gettext( - "module:instance:name:statistic and " + "[module[:instance[:name[:statistic]]]] and " "-m -i -n -s are mutually exclusive")); usage(); exit(2); @@ -362,7 +355,7 @@ usage(void) " [ -m module ] [ -i instance ] [ -n name ] [ -s statistic ]\n" " [ interval [ count ] ]\n" "kstat [ -Cjlpq ] [ -T d|u ] [ -c class ]\n" - " [ module:instance:name:statistic ... ]\n" + " [ module[:instance[:name[:statistic]]] ... ]\n" " [ interval [ count ] ]\n")); } diff --git a/usr/src/man/man1m/kstat.1m b/usr/src/man/man1m/kstat.1m index c7ce68f4ea..ecf696c2b0 100644 --- a/usr/src/man/man1m/kstat.1m +++ b/usr/src/man/man1m/kstat.1m @@ -17,7 +17,7 @@ kstat \- display kernel statistics .LP .nf \fBkstat\fR [\fB-Cjlpq\fR] [\fB-T\fR u | d ] [\fB-c\fR \fIclass\fR] - [\fImodule\fR:\fIinstance\fR:\fIname\fR:\fIstatistic\fR]... + [\fImodule\fR[:\fIinstance\fR[:\fIname\fR[:\fIstatistic\fR]]]]... [interval [count]] .fi -- 2.11.4.GIT