Date: Mon, 11 Jan 1999 19:57:13 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: gallatin@cs.duke.edu (Andrew Gallatin) Cc: mjacob@feral.com, freebsd-alpha@FreeBSD.ORG Subject: Re: printing vm_offset_t's Message-ID: <199901111957.MAA25498@usr05.primenet.com> In-Reply-To: <13977.11657.998775.230402@grasshopper.cs.duke.edu> from "Andrew Gallatin" at Jan 10, 99 05:46:55 pm
next in thread | previous in thread | raw e-mail | index | archive | help
Two comments on this thread: > > > Matthew Jacob writes: > > > > > > > > Hmm. How about %p? > > > > > > That's another option, but unless you cast the arg to a pointer (like > > > void *), you get > > > > > > warning: format argument is not a pointer (arg 4) %qx is the accepted draft standard methid of printing quad values. You will need to cast , in any case, if vm_offset_t is not considered a pointer type by the debugger, or it will not push sufficient information onto the stack. > > Maybe this is why Eduardo Horvath went through all the NetBSD kernel > > source and deepsixed vm_offset_t. > > Ick. That seems rather extreeme. I can't imagine all the external code > that broke when vm_offset_t disappeared... External code that depends on kernel structures is inherently broken; think of this as an opportunity to correct the external code. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901111957.MAA25498>