Hi, while porting the NgATM stuff to sparc64 I could not answer the following question: What is the correct way to printf() an uint64_t in the kernel. For i386 I need %llu, for sparc64 I need %lu or gcc will give a warning. I see two variants:
1. include <inttypes.h> or <machine/_inttypes.h> and use the standard printf format strings. 2. cast always to uintmax_t and use %ju. The first possibilities seems wrong, because one should not include a non-system header, the second because given a (hypothetical) machine with 128-bit uintmax_t this would incure a useless overhead. So what? harti -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private [EMAIL PROTECTED], [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message