kern/126926: [build] [patch] Add MACHINE to dmesg

Andriy Gapon avg at freebsd.org
Wed Sep 23 14:30:07 UTC 2009


The following reply was made to PR kern/126926; it has been noted by GNATS.

From: Andriy Gapon <avg at freebsd.org>
To: bug-followup at freebsd.org, gavin at freebsd.org
Cc:  
Subject: Re: kern/126926: [build] [patch] Add MACHINE to dmesg
Date: Wed, 23 Sep 2009 17:22:04 +0300

 on 23/09/2009 15:14 Andriy Gapon said the following:
 > I think that the safest bet would be to use the same thing that is used for
 > hw.machine_arch sysctl (which is used by uname).
 > And that thing is MACHINE_ARCH.
 
 It seems that I confused uname -p and uname -m.
 The latter is what we are interested in and it is provided by hw.machine sysctl.
 Although that sysctl is defined in MD code, I believe that MACHINE is the correct
 build-time define that corresponds to what gets into that sysctl.
 
 
 -- 
 Andriy Gapon


More information about the freebsd-bugs mailing list