====== Kernel ====== [[https://github.com/frank-w/BPI-R64-bsp/blob/390546b0df05998a293566a615fda47c936877c8/Makefile#L53|make-command]] [[::en:bpi-r64:kernel]] (en) ===== debug ===== dev_info(gsw->dev,"%s:%d 0x%x",__FUNCTION__,__LINE__,val); printk(KERN_ALERT "DEBUG: Passed %s %d \n",__FUNCTION__,__LINE__); #define onelinedbg(dev,fmt,...) {if (dev) dev_info(dev,"%s:%d " fmt,__FUNCTION__,__LINE__,##__VA_ARGS__);else printk(KERN_INFO "%s:%d " fmt,__FUNCTION__,__LINE__,##__VA_ARGS__);} makefile: $(info $$var is [${var}])