I dont think so!
hake2002 2007-07-26 pradeep singh 2007-07-26 21:35:31 [EMAIL PROTECTED] [email protected] Re: Verification of log messages from loopback.c On 7/26/07, Rajendra Stalekar <[EMAIL PROTECTED] > wrote: > > -----Original Message----- > From: pradeep singh [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 26, 2007 3:21 PM > To: [EMAIL PROTECTED] > Cc: [email protected] > Subject: Re: Verification of log messages from loopback.c > > Code please?? > > You won't require the code, since I have just added printk(KERN_ALERT > "RAJENDRA in get_stats\n") after the declaration of int i in > static struct net_device_stats* get_stats(struct net_device *dev), which is > standard function in source code /drivers/net/loopback.c > I built it. I get a loopback.o > My objective in adding this printk statement was trying to see whether this > gets called, by executing ifconfig or netstat -i. > I checked in /var/log/messages and the output of printk statement didn't get > logged. > What might have gone wrong? How am I supposed to test it. > However the most important question is since it being a driver, shouldn't > this be a loopback.ko? How did you compile BTW? Didn't you compile the whole kernel? > > TIA. > > On 7/26/07, Rajendra Stalekar <[EMAIL PROTECTED] > wrote: > > > > > > > > > > Hi, > > > > I just put in a printk statement in getstats function in loopback.c and > when > > I tried doing a ping 127.0.0.1 or ifconfig, it does not log the message in > > the /var/log/messages. > > > > I have built it , after making the changes. > > > > Any idea what's going wrong here. > > > > > > > > Regards, > > > > Rajendra Stalekar(extn 2016) > > > > Location:- Akruti > > > > Mobile no:- +91 9860501143 > > > > > > > > > > > -- > play the game > > > -- play the game -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.org/FAQ
