From mboxrd@z Thu Jan 1 00:00:00 1970 From: jsm28@gcc.gnu.org To: jsm28@cam.ac.uk, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, ydi@eecs.uic.edu, zwei@eecs.uic.edu Subject: Re: c/3112: printf error for structs with "long long" members Date: Mon, 11 Jun 2001 04:11:00 -0000 Message-id: <20010611111131.3278.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00400.html List-Id: Synopsis: printf error for structs with "long long" members State-Changed-From-To: open->closed State-Changed-By: jsm28 State-Changed-When: Mon Jun 11 04:11:31 2001 State-Changed-Why: Not a bug. printf can't tell what type the arguments are except by the format string you give. GCC will warn about the incorrect format string with -Wall. See ISO 9899 and the ABI specification for your system. The correct format specifier for unsigned long long is %llu, but I don't know whether your system supports it. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3112&database=gcc