From owner-freebsd-audit Mon May 27 17:12:34 2002 Delivered-To: freebsd-audit@freebsd.org Received: from turbine.trit.org (turbine.trit.org [63.198.170.141]) by hub.freebsd.org (Postfix) with ESMTP id C914237B409 for ; Mon, 27 May 2002 17:12:29 -0700 (PDT) Received: from turbine.trit.org (localhost [127.0.0.1]) by turbine.trit.org (Postfix) with ESMTP id E5D3E3E5E; Tue, 28 May 2002 00:12:27 +0000 (UTC) To: Dag-Erling Smorgrav Cc: audit@freebsd.org Subject: Re: %j for printf(9) In-Reply-To: ; from des@ofug.org on "23 May 2002 13:16:58 +0200" Date: Tue, 28 May 2002 00:12:27 +0000 From: Dima Dorfman Message-Id: <20020528001227.E5D3E3E5E@turbine.trit.org> Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dag-Erling Smorgrav wrote: > Dima Dorfman writes: > > I would also like to solicit comments on what to do with %z; C99 says > > this is the length modifier for size_t, but the kernel treats it as > > signed hex. This patch implements the C99 length modifier as %Z, but > > that probably shouldn't stay. IIRC, I couldn't find any place in the > > kernel that we actually use %z; can it perhaps be removed? > > des@des ~% egrep -r '%[^\" dious]+z' /sec/freebsd/current/src/sys > /sec/freebsd/current/src/sys/ddb/db_examine.c: db_printf("%-*lz", width, (long)value); > /sec/freebsd/current/src/sys/ddb/db_examine.c: db_printf("%8lz", (long)addr); As far as I can tell, these are just implementing %z for the examine command. If we remove %z from printf(9), we can probably remove it from ddb examine, too. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message