From owner-cvs-all Sat Jul 10 8:27:10 1999 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2C09314C86; Sat, 10 Jul 1999 08:27:07 -0700 (PDT) (envelope-from peter@FreeBSD.org) Received: (from peter@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA30273; Sat, 10 Jul 1999 08:27:06 -0700 (PDT) (envelope-from peter@FreeBSD.org) Message-Id: <199907101527.IAA30273@freefall.freebsd.org> From: Peter Wemm Date: Sat, 10 Jul 1999 08:27:06 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_prf.c Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk peter 1999/07/10 08:27:06 PDT Modified files: sys/kern subr_prf.c Log: Fixes for a couple of problems in last commit: 1. Printing large quads in small bases overflowed the buffer if sizeof(u_quad_t) > sizeof(u_long). 2. The sharpflag checks had operator precedence bugs due to excessive parentheses in all the wrong places. 3. The explicit 0L was bogus in the quad_t comparison and useless in the long comparision. 4. There was some more bitrot in the comment about ksprintn(). Our ksprintn() handles bases up to 36 as well as down to 2. Bruce has other complaints about using %q in kernel and would rather we went towards using the C9X style %ll and/or %j. (I agree for that matter, as long as gcc/egcs know how to deal with that.) Submitted by: bde Revision Changes Path 1.56 +8 -8 src/sys/kern/subr_prf.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message