From owner-freebsd-current@FreeBSD.ORG Sun Feb 13 04:50:47 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 A28CE16A4CE for ; Sun, 13 Feb 2005 04:50:47 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48F9143D1F for ; Sun, 13 Feb 2005 04:50:47 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by rproxy.gmail.com with SMTP id j1so477056rnf for ; Sat, 12 Feb 2005 20:50:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=eUa6yFEOZvS13EAeB/9/xUSpqKZmn+5EKeH7LxJSeUdaZjx9gj2/GhmKJo42UaQ6pnzxcneb9w5pMV85B21L0MOafst5nxFKUhs2eIwcUZX/5zLrqLgo2m81GAE6phjlwvIHW8kcOi/ciU0hnqzrunQgmmrlfzEZrwmkDoIesmg= Received: by 10.38.89.32 with SMTP id m32mr17870rnb; Sat, 12 Feb 2005 20:50:46 -0800 (PST) Received: by 10.38.209.12 with HTTP; Sat, 12 Feb 2005 20:50:46 -0800 (PST) Message-ID: <84dead720502122050492cde82@mail.gmail.com> Date: Sun, 13 Feb 2005 04:50:46 +0000 From: Joseph Koshy To: Mathew Kanner In-Reply-To: <20050212145501.GG5488@cnd.mcgill.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050212145501.GG5488@cnd.mcgill.ca> cc: freebsd-current@freebsd.org Subject: Re: cross platform X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joseph Koshy 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 04:50:47 -0000 > - How do I know which is the right directive? Is this documented > somewhere? What's the problem exactly? I had a problem with printing uint64_t values portably between the AMD 64 and i386. My debug printfs had to use either "%lx" or "%llx". The workaround (hack) was to use CPP liberally (#define U64FORMAT "%l" or "%ll"). I wonder if there is a better (more portable) way. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy