Date: Thu, 12 Feb 1998 23:13:25 GMT From: James Raynard <james@jraynard.demon.co.uk> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: bin/5730: config doesn't specify which options are unknown Message-ID: <199802122313.XAA25819@jraynard.demon.co.uk>
next in thread | raw e-mail | index | archive | help
>Number: 5730 >Category: bin >Synopsis: config doesn't specify which options are unknown >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Feb 12 15:50:01 PST 1998 >Last-Modified: >Originator: James Raynard >Organization: >Release: FreeBSD 3.0-CURRENT i386 >Environment: FreeBSD-current, with version 1.24 of mkmakefile.c >Description: Running config on a kernel configuration containing an invalid option causes a warning that an unknown option has been used, but doesn't specify which one. This makes removing the offending option a little harder than necessary. >How-To-Repeat: See above. >Fix: Something like the following: Index: mkmakefile.c =================================================================== RCS file: /home/cvs/src/usr.sbin/config/mkmakefile.c,v retrieving revision 1.25 diff -u -r1.25 mkmakefile.c --- mkmakefile.c 1998/02/09 23:59:51 1.25 +++ mkmakefile.c 1998/02/12 23:04:01 @@ -197,6 +197,7 @@ fprintf(ofp, " -D%s=%s", op->op_name, op->op_value); else fprintf(ofp, " -D%s", op->op_name); + printf("Unknown option: %s\n", op->op_name); } } fprintf(ofp, "\n"); >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802122313.XAA25819>