Do you return from kputc just after ser_putc()? That should suppress
output to tty.
> first you define a macro that makes all invocations of printf expand
> to kprintf and then instead of writing a function called kprintf(),
> you provide one called printf()..what's the voodoo here??
Actually the define renames _definition_ of printf to kpritnf. The
printf() in libc is called kprintf in kernel. Afaik, it is the same
code.
T.
What if you suppress all prints with tty on either side? Whoud that
give you more useful output? What if you print only per every 100
messages? That makes my system responsive. Would it give you enough
info to debug your stuff?
> ^@mini_send(): system now sending to tty
> ^@mini_send(): tty now sending to system
> ^@mini_send(): system now sending to tty
> ^@mini_send(): tty now sending to system
> ^@mini_send(): system now sending to tty
> ^@mini_send(): tty now sending to system
> ^@mini_send(): system now sending to tty
> ...goes on like this forever
>
> any ideas?
These are mostly SYS_DEVIO sys_calls
Cheers, T.
> ^@mini_send(): system now sending to tty
> ^@mini_send(): tty now sending to system
> ^@mini_send(): system now sending to tty
> ^@mini_send(): tty now sending to system
> ^@mini_send(): system now sending to tty
> ^@mini_send(): tty now sending to system
> ^@mini_send(): system now sending to tty
> ...goes on like this forever
>
> any ideas?
These are mostly SYS_DEVIO sys_calls