LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-17-2010, 01:09 AM   #1
coolsandyforyou
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Rep: Reputation: 0
Unhappy how to debug a newly written system cal


Hi,
i added a new system call..helloworld...

i rebuild the kernel and when i try to use it, it is returning -1.

can any one tell me how to debug and know where things went wrong..

how to see the kernel log when this syscall is called...i wrote a println in my syscall..but couldnt find that in /var/log/dmesg...

Help me out here

THanks in advance...
 
Old 12-17-2010, 03:11 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
I think you need to use 'printk' ...
 
Old 12-18-2010, 12:19 PM   #3
coolsandyforyou
LQ Newbie
 
Registered: Dec 2010
Posts: 4

Original Poster
Rep: Reputation: 0
i have given printk itself....but still icant see any logs
 
Old 12-18-2010, 06:15 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
Try /var/log/messages
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
best methodology to debug a Linux daemon written in C++ aryan1 Programming 12 12-30-2009 06:01 AM
adapting the configuration written by system-config-securitylevel xpucto Linux - Security 3 11-10-2006 11:12 AM
cannot login into newly setup system biker0099 Linux - Security 8 02-12-2006 03:38 PM
a CGI written in C, problem with an fopen() system call Sm0k3 Programming 2 10-03-2003 03:18 PM
why DISPLAY is :1 in my newly Debian system? wycolorado Debian 2 08-28-2003 12:10 AM


All times are GMT -5. The time now is 01:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration