Date: Sun, 13 Feb 2005 11:09:28 +0200 From: Ruslan Ermilov <ru@FreeBSD.org> To: Mathew Kanner <mat@cnd.mcgill.ca> Cc: freebsd-current@FreeBSD.org Subject: Re: cross platform Message-ID: <20050213090928.GB88292@ip.net.ua> In-Reply-To: <20050213010231.GH5488@cnd.mcgill.ca> References: <20050212145501.GG5488@cnd.mcgill.ca> <20050212220020.GD44342@ip.net.ua> <20050213010231.GH5488@cnd.mcgill.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
--+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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050213090928.GB88292>