Subject: int_fmtio.h problem on sparc64
To: NetBSD port-sparc64 mailing list <port-sparc64@netbsd.org>
From: Chris Ross <cross+netbsd@distal.com>
List: port-sparc
Date: 11/21/2007 11:31:08
   Hi.  I was trying to use some of the formatting magic from  
int_fmtio.h, but there's an issue.  It looks like the 64-bit versions  
of PRI?PTR and SCN?PTR are missing.  uintptr_t is a 64-bit number on  
the sparc64, but PRIxPTR (for example) is "lx", instead of "llx".

   Can someone check in a fix for this?  Just duplicating the *MAX  
logic immediately above each of the *PTR lines should do it.  Seem  
right to all?  (this is in sys/arch/sparc/include/int_fmtio.h, which  
is #included by sys/arch/sparc64/include/int_fmtio.h)

                    - Chris