From owner-cvs-all Wed Jun 13 13:52:43 2001 Delivered-To: cvs-all@freebsd.org Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by hub.freebsd.org (Postfix) with ESMTP id 40E5237B403; Wed, 13 Jun 2001 13:52:32 -0700 (PDT) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id 5CDDE17D2A; Wed, 13 Jun 2001 22:36:10 +0200 (CEST) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.11.4/8.11.3) id f5DKY9S07345; Wed, 13 Jun 2001 22:34:09 +0200 (CEST) (envelope-from schweikh) Date: Wed, 13 Jun 2001 22:34:09 +0200 From: Jens Schweikhardt To: Sheldon Hearn Cc: Jens Schweikhardt , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/stdio printf.3 Message-ID: <20010613223409.C6129@schweikhardt.net> References: <200106131905.f5DJ5D949883@freefall.freebsd.org> <76631.992460492@axl.seasidesoftware.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <76631.992460492@axl.seasidesoftware.co.za>; from sheldonh@starjuice.net on Wed, Jun 13, 2001 at 09:28:12PM +0200 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Sheldon, On Wed, Jun 13, 2001 at 09:28:12PM +0200, Sheldon Hearn wrote: # On Wed, 13 Jun 2001 12:05:13 MST, Jens Schweikhardt wrote: # # > Modified files: # > lib/libc/stdio printf.3 # > Log: # > Add description for the 'll' modifier for long long. In essence a copy # > from the 'l' description with s/long/long long/g. # # Now just to get gcc to accept it without bitching on -Wformat. :-) It doesn't bitch here: schweikh@hal9000:~ $ cat tst.c #include int main (void) { long long ll = -1; printf ("%lld\n", ll); return 0; } schweikh@hal9000:~ $ gcc -Wformat tst.c schweikh@hal9000:~ $ gcc -v Using builtin specs. gcc version 2.95.3 20010315 (release) schweikh@hal9000:~ $ uname -a FreeBSD hal9000.schweikhardt.net 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Jun 7 23:20:39 CEST 2001 toor@hal9000.schweikhardt.net:/usr/obj/usr/src/sys/HAL9000 i386 Use %ld with long long and you'll get tst.c: In function `main': tst.c:6: warning: long int format, different type arg (arg 2) Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message