Re: bus_space(9) types and printf()

2010-04-28 Thread David Laight
On Thu, Apr 22, 2010 at 11:33:40AM +1000, matthew green wrote: In my tree, I've changed bus_space_tag_t from an integer type to a pointer to a struct. Now, some debugging code in MI drivers will not compile because it tries to printf bus_space_tag_t's using the format %x.

Re: bus_space(9) types and printf()

2010-04-28 Thread der Mouse
Or add a MD function to convert a bus_space_tag_t to a value that can be printed with (say) %p in MI code that includes most of the useful info. I've felt, in recent years, that printf is annoyingly weak in some respects. For these purposes, it would be really nice to have a format specifier

Re: bus_space(9) types and printf()

2010-04-21 Thread Thor Lancelot Simon
On Wed, Apr 21, 2010 at 04:30:23PM -0500, David Young wrote: In my tree, I've changed bus_space_tag_t from an integer type to a pointer to a struct. Now, some debugging code in MI drivers will not compile because it tries to printf bus_space_tag_t's using the format %x. I don't see the use

re: bus_space(9) types and printf()

2010-04-21 Thread matthew green
In my tree, I've changed bus_space_tag_t from an integer type to a pointer to a struct. Now, some debugging code in MI drivers will not compile because it tries to printf bus_space_tag_t's using the format %x. I don't see the use of printing a bus_space_tag_t, so I am changing