From owner-freebsd-bugs Sat Nov 20 10:29:32 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from laurel.actlab.utexas.edu (laurel.actlab.utexas.edu [128.83.194.15]) by hub.freebsd.org (Postfix) with ESMTP id 97D5514CFF; Sat, 20 Nov 1999 10:29:30 -0800 (PST) (envelope-from cynbe@muq.org) Received: (from cynbe@localhost) by laurel.actlab.utexas.edu (8.8.8/8.8.5) id MAA08363; Sat, 20 Nov 1999 12:29:25 -0600 Date: Sat, 20 Nov 1999 12:29:25 -0600 Message-Id: <199911201829.MAA08363@laurel.actlab.utexas.edu> From: Cynbe ru Taren To: bde@FreeBSD.org, freebsd-bugs@FreeBSD.org Subject: Re: misc/15002: coredump in sprintf with long long args Cc: laurent@off.aspic.com Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org | Synopsis: coredump in sprintf with long long args | | State-Changed-From-To: closed->analyzed | State-Changed-By: bde | State-Changed-When: Sat Nov 20 05:09:21 PST 1999 | State-Changed-Why: | To actually explain the problem. | | The problem is a printf format error. The nonstandard format "%lld" was | not supported in FreeBSD until FreeBSD-3.2. The 4.4BSD format "%qd" must | be used to print long longs (at least on i386's) under earler versions. Thank you! I find this feedback much more useful than suggestions about my recreational drug habits. :) If anyone can give me an appropriate #if test to detect FreeBSD versions prior to 3.2, I will patch my source code to automatically use %qd instead of %lld when appropriate. Otherwise, I'll add a comment so people can resolve the problem by hand, at least. (I lack access to a FreeBSD system.) Thanks again! Cynbe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message