From owner-freebsd-bugs@FreeBSD.ORG Wed Sep 23 14:30:07 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5590410656AE for ; Wed, 23 Sep 2009 14:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 44B378FC20 for ; Wed, 23 Sep 2009 14:30:07 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n8NEU7vY015927 for ; Wed, 23 Sep 2009 14:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n8NEU7Pg015924; Wed, 23 Sep 2009 14:30:07 GMT (envelope-from gnats) Date: Wed, 23 Sep 2009 14:30:07 GMT Message-Id: <200909231430.n8NEU7Pg015924@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: kern/126926: [build] [patch] Add MACHINE to dmesg X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andriy Gapon List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Sep 2009 14:30:07 -0000 The following reply was made to PR kern/126926; it has been noted by GNATS. From: Andriy Gapon To: bug-followup@freebsd.org, gavin@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