Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| printing_debugging [2018/09/25 13:21] – [Defining macros] rpjday | printing_debugging [2018/09/25 13:27] (current) – [__netdev_printk()] rpjday | ||
|---|---|---|---|
| Line 265: | Line 265: | ||
| EXPORT_SYMBOL(netdev_printk); | EXPORT_SYMBOL(netdev_printk); | ||
| </ | </ | ||
| + | |||
| + | ==== __netdev_printk() ==== | ||
| + | |||
| + | < | ||
| + | static void __netdev_printk(const char *level, const struct net_device *dev, | ||
| + | struct va_format *vaf) | ||
| + | { | ||
| + | if (dev && dev-> | ||
| + | dev_printk_emit(level[1] - ' | ||
| + | dev-> | ||
| + | "%s %s %s%s: %pV", | ||
| + | dev_driver_string(dev-> | ||
| + | dev_name(dev-> | ||
| + | netdev_name(dev), | ||
| + | vaf); | ||
| + | } else if (dev) { | ||
| + | printk(" | ||
| + | | ||
| + | } else { | ||
| + | printk(" | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Dynamic debugging ===== | ||
| + | |||
| + | ... coming ... | ||