From 1bce768912485c77ccca58cccdbd840c3f84180c Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 26 Jun 2000 09:08:23 +0000 Subject: [PATCH] Report the line number where gethints.pl does not understand something in an old device line. --- sys/alpha/conf/gethints.pl | 3 ++- sys/i386/conf/gethints.pl | 3 ++- sys/pc98/conf/gethints.pl | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/alpha/conf/gethints.pl b/sys/alpha/conf/gethints.pl index 74963990b87..9eeb1932ddb 100644 --- a/sys/alpha/conf/gethints.pl +++ b/sys/alpha/conf/gethints.pl @@ -9,6 +9,7 @@ # $FreeBSD$ while (<>) { + $line++; chop; s/#.*//; next unless /^device/; @@ -94,6 +95,6 @@ while (<>) { } next; } - print STDERR "unrecognized config token $key\n"; + print STDERR "unrecognized config token '$key' on line $line\n"; } } diff --git a/sys/i386/conf/gethints.pl b/sys/i386/conf/gethints.pl index 74963990b87..9eeb1932ddb 100644 --- a/sys/i386/conf/gethints.pl +++ b/sys/i386/conf/gethints.pl @@ -9,6 +9,7 @@ # $FreeBSD$ while (<>) { + $line++; chop; s/#.*//; next unless /^device/; @@ -94,6 +95,6 @@ while (<>) { } next; } - print STDERR "unrecognized config token $key\n"; + print STDERR "unrecognized config token '$key' on line $line\n"; } } diff --git a/sys/pc98/conf/gethints.pl b/sys/pc98/conf/gethints.pl index b385ed03e0e..684d5b2d8cc 100644 --- a/sys/pc98/conf/gethints.pl +++ b/sys/pc98/conf/gethints.pl @@ -9,6 +9,7 @@ # $FreeBSD$ while (<>) { + $line++; chop; s/#.*//; next unless /^device/; @@ -87,6 +88,6 @@ while (<>) { } next; } - print STDERR "unrecognized config token $key\n"; + print STDERR "unrecognized config token '$key' on line $line\n"; } }