From nobody@FreeBSD.org  Fri Jul 30 18:52:18 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EF24616A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Jul 2004 18:52:18 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E56A243D58
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Jul 2004 18:52:18 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i6UIoENv032193
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 30 Jul 2004 18:50:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i6UIoEh2032192;
	Fri, 30 Jul 2004 18:50:14 GMT
	(envelope-from nobody)
Message-Id: <200407301850.i6UIoEh2032192@www.freebsd.org>
Date: Fri, 30 Jul 2004 18:50:14 GMT
From: Brian Eng <brian@midstream.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: 'what kernel' doesn't work 
X-Send-Pr-Version: www-2.3

>Number:         69821
>Category:       conf
>Synopsis:       'what kernel' doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 30 19:00:23 GMT 2004
>Closed-Date:    Sun Jul 31 12:00:06 GMT 2005
>Last-Modified:  Sun Jul 31 12:00:06 GMT 2005
>Originator:     Brian Eng
>Release:        5.2.1, with an update to the em driver
>Organization:
MidStream Technologies
>Environment:
>Description:
'what kernel' doesn't print the version[] string, does print a revision header from if_em_hw.h if that file is rev 1.13 or later
>How-To-Repeat:
execute 'what /boot/kernel/kernel' 
>Fix:
1)  Change sccspad[] initializer in sys/conf/newvers.h from { '\0' } to something non-zero.  sccspad[] is supposed to pad so that sccs[] is right before version[].  What is happening is that the compiler is recognizing that sccspad[] is all zeroes and is putting it with the other variables that are initialized to zero (.bss) instead of with sccs[] and version[] (.data).  See 'objdump -t vers.o'.

2)  Remove the 'what' key string ("@(#)") in if_em_hw.h 
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: jhb 
State-Changed-When: Fri Jul 1 20:11:23 GMT 2005 
State-Changed-Why:  
I've just committed a fix to HEAD (dropped sccspad[] and duplicated part of 
version[] in sccs[] explicitly) and will MFC it in a week or so. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69821 
State-Changed-From-To: patched->closed 
State-Changed-By: matteo 
State-Changed-When: Sun Jul 31 11:59:49 GMT 2005 
State-Changed-Why:  
Committed and MFC'ed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=69821 
>Unformatted:
