debug em driver code after applying patch
Alexander V. Chernikov
melifaro at FreeBSD.org
Mon Feb 11 07:50:53 UTC 2013
On 05.02.2013 18:44, h bagade wrote:
> Hi all,
>
> I applied patch on em driver code and I want to check how it is working on
> different situations. I need to put some output in different parts of the
> code to trace what's going on in different situations.
> I've tried to write to files or executing commands(like echo) using system
> function, but in these two methods, by adding headers some conflicting
> issues happen which I don't know how to resolve!
>
> I've tried to use it's macros like INIT_DEBUGOUT to print some messages but
> it only works on startup, not when the system is running!
>
> I don't know how to print out messages to debug the code?! Is there anybody
> to help me handle it? I really need help.
You can use printf or log for some rarely-called cases (see printf(9)).
for others you can take a look on ktr(9) API and ktrdump(8).
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>
More information about the freebsd-net
mailing list