Subject: number base printing conventions
To: None <tech-kern@NetBSD.ORG>
From: Erik E. Fair <>
List: tech-kern
Date: 07/28/1997 13:31:46
NetBSD is not consistent about printing numbers. This may seem a trivial
concern, but I claim that it's too easy to lose time chasing down a bug or
other problem because that number you *thought* was decimal turned out to
be hex instead. This also goes back the other way when you're trying to cut
& paste a number from a console capture into gdb.

The short version is I'd like to see each place where we see %x or %p be
replaced by 0x%x or 0x%p (or some other convention like appending 'h'). I'm
certainly going to do this for those modules that I come across, but I'd
like know that some of you agree with me that keeping a consistent standard
in this regard is a good idea.

	Erik <>