Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Feb 2013 18:14:03 +0330
From:      h bagade <bagadeh@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   debug em driver code after applying patch
Message-ID:  <CAARSjE2yxtFR5i8zgc5OoOPahRzd8B0SReyg7KDTsMRgQeyssg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAARSjE2yxtFR5i8zgc5OoOPahRzd8B0SReyg7KDTsMRgQeyssg>