Bug 69821

Summary: 'what kernel' doesn't work
Product: Base System Reporter: Brian Eng <brian>
Component: confAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Brian Eng 2004-07-30 20:00:23 UTC
'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

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
How-To-Repeat: execute 'what /boot/kernel/kernel'
Comment 1 John Baldwin freebsd_committer freebsd_triage 2005-07-01 21:11:23 UTC
State Changed
From-To: open->patched

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.
Comment 2 Matteo Riondato freebsd_committer freebsd_triage 2005-07-31 12:59:49 UTC
State Changed
From-To: patched->closed

Committed and MFC'ed