I want only my driver’s DbgPrint s to appear in WinDbg. How to achieve this?
Is there any option ?
Not really, as far as I know.
Obviously, if you want to KNOW which is your debug prints, as opposed to
other products, you could just add a prefix, say “MYDriver: This is my
message”. That would help you know that it’s your debug prints.
If it’s for logging purposes or such, you could also log the debug output,
and then filter it with something like grep, so that only the text starting
with “Mydriver” is printed.
[Or you could patch the other driver files so that they don’t print
anything… ]
–
Mats
-----Original Message-----
From: Abhijit [mailto:xxxxx@yahoo.com]
Sent: Thursday, March 04, 2004 12:13 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] WinDbg OutputI want only my driver’s DbgPrint s to appear in WinDbg. How
to achieve this?
Is there any option ?
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256You are currently subscribed to ntdev as: xxxxx@3dlabs.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
If you use a standard format for all your messages, you can use .ofilter in
WinDbg like this:
.ofilter “*MyDriver*”
That will only display output with “MyDriver” in the string.
HTH,
Ken
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Abhijit
Sent: Thursday, March 04, 2004 7:13 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] WinDbg Output
I want only my driver’s DbgPrint s to appear in WinDbg. How to achieve this?
Is there any option ?
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
Heh. Had a user bring up dbgview on a system yesterday to debug some stuff
in a MIDI driver of mine. As soon as he started dbgview it started saying
“hoho”. Yep, hoho. About every 200us. Continuously. And no, that ain’t
my driver.
Turned out it was a commercial driver from a rather well-known company that
mostly makes Mac hardware.
Sigh…
Filtering quickly saved the day from that abortion.
Loren
----- Original Message -----
From: “Ken Cross”
To: “Windows System Software Devs Interest List”
Sent: Thursday, March 04, 2004 4:41 AM
Subject: RE: [ntdev] WinDbg Output
> If you use a standard format for all your messages, you can use .ofilter
in
> WinDbg like this:
>
> .ofilter “MyDriver”
>
> That will only display output with “MyDriver” in the string.
>
> HTH,
> Ken
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Abhijit
> Sent: Thursday, March 04, 2004 7:13 AM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] WinDbg Output
>
> I want only my driver’s DbgPrint s to appear in WinDbg. How to achieve
this?
> Is there any option ?
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@comcast.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@earthlink.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Loren,
I think you have found a bug. Please contact them or give us their
name, so that we (the list) can contact them.
It definitely must read “oh no!” not “hoho”. 
Norbert.
“Take my advice, I’m not using it.”
---- snip ----
Maybe they outsourced it to the North Pole ? Some Elf may have forgotten the
extra “ho”, that’s definitely a bug.
Actually, I have a problem: if I load a crash dump file and type “!analyze
-v”, I can’t load another crash dump file any longer, it keeps saying that I
don’t have enough storage to complete the operation (“Win32 Error 14”).
Looks like there’s a memory leak somewhere ?
Alberto.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Norbert Kawulski
Sent: Thursday, March 04, 2004 11:54 AM
To: Windows System Software Devs Interest List
Subject: Re:[ntdev] WinDbg Output
Loren,
I think you have found a bug. Please contact them or give us their
name, so that we (the list) can contact them.
It definitely must read “oh no!” not “hoho”. 
Norbert.
“Take my advice, I’m not using it.”
---- snip ----
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.
Sadly, these people are very good in the Mac world and very clueless in the
PC world. Complaining about their broken MIDI drivers has had little or no
effect in the last 10 years or so. OTOH, their newer audio drivers are
pretty good.
I don’t think I’ll mention their name in public here, but if you know
anything about MIDI hardware, there are only about 2 companies that make
MIDI interfaces these days, and one of them is a long-time Mac hardware and
software supplier…
Loren
----- Original Message -----
From: “Norbert Kawulski”
To: “Windows System Software Devs Interest List”
Sent: Thursday, March 04, 2004 8:54 AM
Subject: Re:[ntdev] WinDbg Output
> Loren,
> I think you have found a bug. Please contact them or give us their
> name, so that we (the list) can contact them.
> It definitely must read “oh no!” not “hoho”.
> Norbert.
> --------
> “Take my advice, I’m not using it.”
> ---- snip ----
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@earthlink.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
Find a call to DbgPrint(“hoho”) in the driver’s assembly and replace it
with NOPs.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Loren Wilton”
To: “Windows System Software Devs Interest List”
Sent: Thursday, March 04, 2004 7:42 PM
Subject: Re: [ntdev] WinDbg Output
> Heh. Had a user bring up dbgview on a system yesterday to debug some stuff
> in a MIDI driver of mine. As soon as he started dbgview it started saying
> “hoho”. Yep, hoho. About every 200us. Continuously. And no, that ain’t
> my driver.
>
> Turned out it was a commercial driver from a rather well-known company that
> mostly makes Mac hardware.
>
> Sigh…
>
> Filtering quickly saved the day from that abortion.
>
> Loren
>
> ----- Original Message -----
> From: “Ken Cross”
> To: “Windows System Software Devs Interest List”
> Sent: Thursday, March 04, 2004 4:41 AM
> Subject: RE: [ntdev] WinDbg Output
>
>
> > If you use a standard format for all your messages, you can use .ofilter
> in
> > WinDbg like this:
> >
> > .ofilter “MyDriver”
> >
> > That will only display output with “MyDriver” in the string.
> >
> > HTH,
> > Ken
> >
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Abhijit
> > Sent: Thursday, March 04, 2004 7:13 AM
> > To: Windows System Software Devs Interest List
> > Subject: [ntdev] WinDbg Output
> >
> > I want only my driver’s DbgPrint s to appear in WinDbg. How to achieve
> this?
> > Is there any option ?
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@comcast.net
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@earthlink.net
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
Need an hex editor, otherwise it would be per debug session
-prokash
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Maxim S. Shatskih
Sent: Thursday, March 04, 2004 4:16 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] WinDbg Output
Find a call to DbgPrint(“hoho”) in the driver’s assembly and replace it
with NOPs.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Loren Wilton”
To: “Windows System Software Devs Interest List”
Sent: Thursday, March 04, 2004 7:42 PM
Subject: Re: [ntdev] WinDbg Output
> Heh. Had a user bring up dbgview on a system yesterday to debug some
stuff
> in a MIDI driver of mine. As soon as he started dbgview it started saying
> “hoho”. Yep, hoho. About every 200us. Continuously. And no, that
ain’t
> my driver.
>
> Turned out it was a commercial driver from a rather well-known company
that
> mostly makes Mac hardware.
>
> Sigh…
>
> Filtering quickly saved the day from that abortion.
>
> Loren
>
> ----- Original Message -----
> From: “Ken Cross”
> To: “Windows System Software Devs Interest List”
> Sent: Thursday, March 04, 2004 4:41 AM
> Subject: RE: [ntdev] WinDbg Output
>
>
> > If you use a standard format for all your messages, you can use .ofilter
> in
> > WinDbg like this:
> >
> > .ofilter “MyDriver”
> >
> > That will only display output with “MyDriver” in the string.
> >
> > HTH,
> > Ken
> >
> >
> > -----Original Message-----
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Abhijit
> > Sent: Thursday, March 04, 2004 7:13 AM
> > To: Windows System Software Devs Interest List
> > Subject: [ntdev] WinDbg Output
> >
> > I want only my driver’s DbgPrint s to appear in WinDbg. How to achieve
> this?
> > Is there any option ?
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@comcast.net
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@earthlink.net
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@garlic.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
And once you’ve done that, send the repaired driver back to the
manufacturer.
Chuck
----- Original Message -----
From: “Maxim S. Shatskih”
To: “Windows System Software Devs Interest List”
Sent: Friday, March 05, 2004 7:16 AM
Subject: Re: [ntdev] WinDbg Output
> Find a call to DbgPrint(“hoho”) in the driver’s assembly and
replace it
> with NOPs.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
> ----- Original Message -----
> From: “Loren Wilton”
> To: “Windows System Software Devs Interest List”
> Sent: Thursday, March 04, 2004 7:42 PM
> Subject: Re: [ntdev] WinDbg Output
>
>
> > Heh. Had a user bring up dbgview on a system yesterday to debug
some stuff
> > in a MIDI driver of mine. As soon as he started dbgview it started
saying
> > “hoho”. Yep, hoho. About every 200us. Continuously. And no, that
ain’t
> > my driver.
> >
> > Turned out it was a commercial driver from a rather well-known
company that
> > mostly makes Mac hardware.
> >
> > Sigh…
> >
> > Filtering quickly saved the day from that abortion.
> >
> > Loren
> >
> > ----- Original Message -----
> > From: “Ken Cross”
> > To: “Windows System Software Devs Interest List”
> > Sent: Thursday, March 04, 2004 4:41 AM
> > Subject: RE: [ntdev] WinDbg Output
> >
> >
> > > If you use a standard format for all your messages, you can use
.ofilter
> > in
> > > WinDbg like this:
> > >
> > > .ofilter “MyDriver”
> > >
> > > That will only display output with “MyDriver” in the string.
> > >
> > > HTH,
> > > Ken
> > >
> > >
> > > -----Original Message-----
> > > From: xxxxx@lists.osr.com
> > > [mailto:xxxxx@lists.osr.com] On Behalf Of Abhijit
> > > Sent: Thursday, March 04, 2004 7:13 AM
> > > To: Windows System Software Devs Interest List
> > > Subject: [ntdev] WinDbg Output
> > >
> > > I want only my driver’s DbgPrint s to appear in WinDbg. How to
achieve
> > this?
> > > Is there any option ?
> > >
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@comcast.net
> > > To unsubscribe send a blank email to
xxxxx@lists.osr.com
> > >
> > >
> > > —
> > > Questions? First check the Kernel Driver FAQ at
> > http://www.osronline.com/article.cfm?id=256
> > >
> > > You are currently subscribed to ntdev as: xxxxx@earthlink.net
> > > To unsubscribe send a blank email to
xxxxx@lists.osr.com
> > >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@cbatson.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> Find a call to DbgPrint(“hoho”) in the driver’s assembly and replace
it
with NOPs.
Hard to do when on the end of 4,000 miles of telephone wire to a user with
no debug tools other than dbgview, which he had never seen before.
Filtering saved the day.
Loren