Re: about syslogd and Printk()

Miquel van Smoorenburg (miquels@cistron.nl)
18 Jul 1998 16:49:10 +0200


In article <35B0A80B.60BEE7CE@mx.cei.gov.cn>,
CHANG Lei <chang714@mx.cei.gov.cn> wrote:
>Hello,everyone.
>I'm reading the linux kernel code about network.
>I want to analyze the packet,so I insert a piece of code into net_bh( )
>to display the packet content:
>
> {
> unsigned char *temp;
> for(temp=skb->data;temp<skb_>tail;temp++)
> printk("0x02:",*temp);
>}
>
>and syslog.conf include:
> kern.* /usr/adm/mylog
>
>when come some packets,there content could display on the screen,
>but it somtimes cann't be recorded into the file of mylog, why?

Do you print a '\n' (newline) somewhere or is it just an endless line .. ?

Mike.

-- 
 Miquel van Smoorenburg | Our vision is to speed up time,
    miquels@cistron.nl  |   eventually eliminating it.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html