Bug 14200

Summary: kldstat command has formatting problems on 64-bit machines
Product: Base System Reporter: aron <aron>
Component: alphaAssignee: freebsd-alpha (Nobody) <alpha>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description aron 1999-10-08 05:30:00 UTC
The kldstat command gives information about the address, size etc of
loadable kernel modules. However, on 64-bit machines, the addresses
are 64-bits wide. This makes the address value run into the size
value in the output of the kldstat command. For example, here's a 
sample output of kldstat on a 500MHz Alphastation:

Id Refs Address    Size     Name
 1    1 0xfffffc0000300000 3eab80   kernel

Notice how the address and size fields run into each other due to 
inadequate space provided for the address on a 64-bit machine.

Fix: 

Just modify the kldstat program to reserve sufficient space for
printing out the address field on 64-bit machines.
How-To-Repeat: Simply issue the command 'kldstat' on an alpha.
Comment 1 Steve Price freebsd_committer freebsd_triage 2000-05-14 20:54:46 UTC
State Changed
From-To: open->closed

Marcel committed a fix in revision 1.7 of kldstat.c.