Skip to content

Instantly share code, notes, and snippets.

@carlos-wong
Created April 20, 2013 06:49
Show Gist options
  • Save carlos-wong/5425046 to your computer and use it in GitHub Desktop.
Save carlos-wong/5425046 to your computer and use it in GitHub Desktop.
C: #marco print a value with format
#define PRINT_VALUE(a,b) \
printk("%s():%d " #b "is " #a "\n",__func__,__LINE__,b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment