They don’t, and of course *I* don’t, since I expected mine to be the only
spew.
There are echoes of “famous last words” there.
To me, copious spew is simply inexcusable, especially for a TPM, Trusted
Program Module. That of all devices in a system I would expect total
silence whether or not I have a debugger attached.
Put a brag message at start up and one at shutdown, fine, but putting out
miles and miles of miles and miles of spew simply because it’s expedient
to get it out the door tells me it’s a product I neither want on my
system nor one I can recommend. Spew affects timing, and if the driver
works with spew and not without spew then the driver needs to be fixed …
period. Releasing it into beta with spew is acceptable, but never as an
end product.
Gary G. Little
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Don Ward
Sent: Wednesday, May 10, 2006 3:53 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Unnecessary obfuscation, “Hey I can’t see my spew
because of your spew!!!”
Chief amongst the reasons for NOT releasing your driver with debug
printouts, let’s call it spew for the sake of brevity, is
really one of
courtesy. Just the time wasted in calling the print statement has been
known to seriously affect systems. Sure, not having a
debugger connected
greatly improves processing time, but the host system may well be in a
development environment and I HAVE to have a debugger
connected because
I’m working on my own code. In this case I want to see MY
spew not YOUR
spew. Case in point: I’m working on a service that uses spew
to tell me
where it is in OnStart, OnStop, it’s constructor and a few other
interesting areas. I can’t see MY spew because Broadcom’s TPM
driver is
puking all over the place and covering it up. How rude.
Yeah, I agree; it’s tiresome. You could just save the output and grep all
the crap away
assuming they have some kind of identifying tag.
However there might actually be a reason for it.
Consider …
Developer> We need a few more weeks because there’s a nasty race in our
code
> and every time we try to pin it down with debugging prints, the
> problem goes away.
Pointy Haired Boss> Oh, you’re telling me that you have a problem but,
whenever
> you try to debug it, it goes away? And you need more
time.
Dev> Yeah, exactly.
PHB> So ship it with the debugs in place: I need that code now!
Couldn’t happen in real life, now could it?
Alternatively, why don’t we petition those clever folks at OSR to make a
utility
that disables debugging output from a specified driver. I’m sure it could
be done
using the H**k word ![:slight_smile: :slight_smile:](/images/emoji/twitter/slight_smile.png?v=12)
Don
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer