Skip to content

Instantly share code, notes, and snippets.

@danish-rehman
Created January 8, 2015 08:34
Show Gist options
  • Save danish-rehman/ccfa20c41c0921bd3a44 to your computer and use it in GitHub Desktop.
Save danish-rehman/ccfa20c41c0921bd3a44 to your computer and use it in GitHub Desktop.
Print in kernel
# Linux source code
>> cd linux-3.16
# File : /net/core/dev.c
>> vim /net/core/dev.c
dev_hard_start_xmit()
printk(KERN_DEBUG "DANX: start %s:%s:%d\n" ,__FILE__ , __func__ ,__LINE__ );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment