From owner-freebsd-bugs Thu Feb 12 15:50:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA01663 for freebsd-bugs-outgoing; Thu, 12 Feb 1998 15:50:04 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA01634; Thu, 12 Feb 1998 15:50:02 -0800 (PST) (envelope-from gnats) Received: from jraynard.demon.co.uk (jraynard.demon.co.uk [158.152.42.77]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA00616 for ; Thu, 12 Feb 1998 15:43:15 -0800 (PST) (envelope-from james@jraynard.demon.co.uk) Received: (from james@localhost) by jraynard.demon.co.uk (8.8.8/8.6.12) id XAA25819; Thu, 12 Feb 1998 23:13:25 GMT Message-Id: <199802122313.XAA25819@jraynard.demon.co.uk> Date: Thu, 12 Feb 1998 23:13:25 GMT From: James Raynard Reply-To: james@jraynard.demon.co.uk To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/5730: config doesn't specify which options are unknown Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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