diff options
author | peter <peter@FreeBSD.org> | 2000-06-26 09:08:23 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-06-26 09:08:23 +0000 |
commit | 358ae698cb54498b21d5c879f71916c674991551 (patch) | |
tree | b4a7eb0fc6918cb3a13a910f16c42ef9199aaf22 | |
parent | 9932b959ce7fbfc32260f3b195fbb2cd88caf14d (diff) | |
download | FreeBSD-src-358ae698cb54498b21d5c879f71916c674991551.zip FreeBSD-src-358ae698cb54498b21d5c879f71916c674991551.tar.gz |
Report the line number where gethints.pl does not understand something
in an old device line.
-rw-r--r-- | sys/alpha/conf/gethints.pl | 3 | ||||
-rw-r--r-- | sys/i386/conf/gethints.pl | 3 | ||||
-rw-r--r-- | 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 7496399..9eeb193 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 7496399..9eeb193 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 b385ed0..684d5b2 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"; } } |