Discussion:
Output Question
(too old to reply)
Juan Miguel Vela
2005-09-09 13:35:25 UTC
Permalink
Hi,

During the time I've been doing my project.
I've added various Print() statements that
have been helpful to me. Such examples
would be, "User Thread started", or
"User Thread finished", or
"X Active User Threads". I find them helpful,
but should they be taken out before I submit?

Thanks,
Juan
Michael Hicks
2005-09-09 14:38:52 UTC
Permalink
Post by Juan Miguel Vela
Hi,
During the time I've been doing my project.
I've added various Print() statements that
have been helpful to me. Such examples
would be, "User Thread started", or
"User Thread finished", or
"X Active User Threads". I find them helpful,
but should they be taken out before I submit?
Yes, please comment them out. Or, another approach
is to use a flag to conditionally turn them on and
off. If you look in src/geekos/userseg.c, you'll see
the flag userDebug defined at the top of the file,
and then in places like Create_User_Context, there is
code

if (userDebug) Print("Size of user memory == %lu (%lx) (%lu
pages)\n", size, size, size/PAGE_SIZE);

-Dr. Hicks

Continue reading on narkive:
Loading...