From owner-freebsd-audit Thu May 23 4:17: 2 2002 Delivered-To: freebsd-audit@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 90C0B37B407 for ; Thu, 23 May 2002 04:17:00 -0700 (PDT) Received: by flood.ping.uio.no (Postfix, from userid 2602) id B41155307; Thu, 23 May 2002 13:16:58 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Dima Dorfman Cc: audit@freebsd.org Subject: Re: %j for printf(9) References: <20020523050017.E3A2A3E22@turbine.trit.org> From: Dag-Erling Smorgrav Date: 23 May 2002 13:16:58 +0200 In-Reply-To: <20020523050017.E3A2A3E22@turbine.trit.org> Message-ID: Lines: 14 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 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); DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message