From owner-freebsd-current@FreeBSD.ORG Sun Feb 13 09:09:30 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9340516A4CE for ; Sun, 13 Feb 2005 09:09:30 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD5F243D2D for ; Sun, 13 Feb 2005 09:09:29 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1D99QoU088286; Sun, 13 Feb 2005 11:09:26 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 67470-11; Sun, 13 Feb 2005 11:09:25 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j1D99PtK088283 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 13 Feb 2005 11:09:25 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id j1D99S7R088348; Sun, 13 Feb 2005 11:09:28 +0200 (EET) (envelope-from ru) Date: Sun, 13 Feb 2005 11:09:28 +0200 From: Ruslan Ermilov To: Mathew Kanner Message-ID: <20050213090928.GB88292@ip.net.ua> References: <20050212145501.GG5488@cnd.mcgill.ca> <20050212220020.GD44342@ip.net.ua> <20050213010231.GH5488@cnd.mcgill.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+g7M9IMkV8truYOl" Content-Disposition: inline In-Reply-To: <20050213010231.GH5488@cnd.mcgill.ca> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: freebsd-current@FreeBSD.org Subject: Re: cross platform X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2005 09:09:30 -0000 --+g7M9IMkV8truYOl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 12, 2005 at 08:02:31PM -0500, Mathew Kanner wrote: > On Feb 12, Ruslan Ermilov wrote: > > Hi Mathew, > >=20 > > On Sat, Feb 12, 2005 at 09:55:02AM -0500, Mathew Kanner wrote: > > > Hi All, > > > I want to get midi working for amd64 and by fixing up the > > > (kernel) printf directives, I have two stupid question: > > > - How do I compile a module for a different platform? > > >=20 >=20 > > [...snap build directions...] >=20 > > > - How do I know which is the right directive? Is this documented > > > somewhere?=20 > > >=20 > > Please see the build(7) manpage, it talks a bit about cross-builds. >=20 > Hi Ruslan, >=20 > Your (snipped) description is great! We should you cross > reference build(7) from make.conf(5). > My second question, poorly worded, was to in regards to printf > qualifiers in the kernel. I not sure I know when to use which when it > comes to system types. > Thanks, >=20 Ah. The safest way when dealing with integer types is to typecast them to intmax_t/uintmax_t and use %jd/%ju format specifiers. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --+g7M9IMkV8truYOl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCDxlIqRfpzJluFF4RAuEtAJ9tANNvhzb2kVFDeqncqenqEGQO/ACglk+z 0PUAVy4wf0ueSmwExOn+NXM= =OAfS -----END PGP SIGNATURE----- --+g7M9IMkV8truYOl--