NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/50255: Remove unused flag from acpidump.c and acpidump.8



>Number:         50255
>Category:       bin
>Synopsis:       Remove unused flag from acpidump.c and acpidump.8
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 18 10:30:00 +0000 2015
>Originator:     Henning Petersen
>Release:        -current
>Organization:
>Environment:
>Description:
Flag sflag in not used in acpidup.
>How-To-Repeat:

>Fix:
diff -u -p -r1.7 acpidump.8
--- usr.sbin/acpitools/acpidump/acpidump.8	18 Mar 2014 18:20:46 -0000	1.7
+++ usr.sbin/acpitools/acpidump/acpidump.8	18 Sep 2015 10:20:03 -0000
@@ -38,7 +38,7 @@
 .Nd dump ACPI tables and ASL
 .Sh SYNOPSIS
 .Nm
-.Op Fl cdhstv
+.Op Fl cdhtv
 .Op Fl f Ar dsdt_input
 .Op Fl o Ar dsdt_output
 .Sh DESCRIPTION
@@ -152,8 +152,6 @@ flag may not be used with this option.
 Displays usage and exit.
 .It Fl o Ar dsdt_output
 Store the DSDT data block from physical memory into the specified file.
-.It Fl s
-Skip tables with bad checksums.
 .It Fl t
 Dump the contents of the various fixed tables listed above.
 .It Fl v
===================================================================

diff -u -p -r1.5 acpidump.c
--- usr.sbin/acpitools/acpidump/acpidump.c	29 Aug 2011 20:38:54 -0000	1.5
+++ usr.sbin/acpitools/acpidump/acpidump.c	18 Sep 2015 10:20:03 -0000
@@ -44,7 +44,6 @@ __RCSID("$NetBSD: acpidump.c,v 1.5 2011/
 
 int	cflag;	/* Dump unknown table data as characters */
 int	dflag;	/* Disassemble AML using iasl(8) */
-int	sflag;	/* Skip tables with bad checksums */
 int	tflag;	/* Dump contents of SDT tables */
 int	vflag;	/* Use verbose messages */
 
@@ -53,7 +52,7 @@ usage(void)
 {
 	const char *progname = getprogname();
 
-	fprintf(stderr, "usage: %s [-c] [-d] [-s] [-t] [-h] [-v] "
+	fprintf(stderr, "usage: %s [-c] [-d] [-t] [-h] [-v] "
 			"[-f dsdt_input] [-o dsdt_output]\n", progname);
 	fprintf(stderr, "To send ASL:\n\t%s -dt | gzip -c9 > foo.asl.gz\n",
 	    progname);
@@ -80,9 +79,6 @@ main(int argc, char *argv[])
 		case 'd':
 			dflag = 1;
 			break;
-		case 's':
-			sflag = 1;
-			break;
 		case 't':
 			tflag = 1;
 			break;



Home | Main Index | Thread Index | Old Index