Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2002 07:05:07 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        John Baldwin <jhb@FreeBSD.ORG>
Cc:        freebsd-arch@FreeBSD.ORG, Peter Wemm <peter@wemm.org>, Andrew Gallatin <gallatin@cs.duke.edu>
Subject:   Re: lp64 vs lp32 printf
Message-ID:  <20021010064644.C6622-100000@gamplex.bde.org>
In-Reply-To: <XFMail.20021009143922.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 9 Oct 2002, John Baldwin wrote:

> > ddb/db_examine.c:                               db_printf("%-*lz", width, (long)value);
> > ddb/db_examine.c:               db_printf("%8lz", (long)addr);
> >
> > Hmm, the second case doesn't even use a sign so it can be %x anyways.

> And the first one doesn't use the '+' modifier either so it can just be
> converted to use '%x' as well.  Hmm, more likely is that probably
> these two places should be using '+z' instead of just 'z'.  So,
> maybe 'y' instead of 'z'?

'+' doesn't work normally in the kernel.  It is a no-op before %d and it
should be a similar no-op before %z (unless %+d is fixed or %z is renamed).
However, it currently has the affect of unbreaking %z.

s/z/y/ seems reasonable.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021010064644.C6622-100000>