tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bus_space(9) types and printf()

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 of printing a bus_space_tag_t, so I am changing
> these dubious printfs as I find them, to leave out the bus_space_tag_t.
> If you have a better idea of what to do, please chime in here.

I think the right thing to do is to replace them with dtrace probes.  In
*that* case, you could do something useful with the bus_space_tag_t. ;-)


Home | Main Index | Thread Index | Old Index