drivers/bus/imx-weim.c: dev_dbg(&pdev->dev, "failed to find weim-cs-gpr\n");
drivers/bus/vexpress-config.c: dev_dbg(parent, "Registered bridge '%s', parent node %p\n",
drivers/bus/vexpress-config.c: dev_dbg(dev, "Parent node %p, looking for %p\n",
drivers/bus/simple-pm-bus.c: dev_dbg(&pdev->dev, "%s\n", __func__);
drivers/bus/simple-pm-bus.c: dev_dbg(&pdev->dev, "%s\n", __func__);
离线
离线
对应的 .c 文件 加上
#define DEBUG 1
参考: https://austinmarton.wordpress.com/2011/11/06/enabling-dev_dbg-in-the-kernel/
刚才试过了, 把
#define DEBUG 1
加到
#include <linux/device.h>
前面就可以了。
# dmesg
[ 184.769179] m25p80 spi32766.0: from 0x00000000, len 512
[ 184.770091] m25p80 spi32766.0: from 0x00000200, len 512
[ 184.770682] m25p80 spi32766.0: from 0x00000400, len 512
[ 184.771157] m25p80 spi32766.0: from 0x00000600, len 512
[ 184.771655] m25p80 spi32766.0: from 0x00000800, len 512
[ 184.772126] m25p80 spi32766.0: from 0x00000a00, len 512
[ 184.772594] m25p80 spi32766.0: from 0x00000c00, len 512
[ 184.773049] m25p80 spi32766.0: from 0x00000e00, len 512
[ 184.773491] m25p80 spi32766.0: from 0x00001000, len 512
[ 184.773976] m25p80 spi32766.0: from 0x00001200, len 512
[ 184.774459] m25p80 spi32766.0: from 0x00001400, len 512
[ 184.774912] m25p80 spi32766.0: from 0x00001600, len 512
[ 184.775360] m25p80 spi32766.0: from 0x00001800, len 512
[ 184.775803] m25p80 spi32766.0: from 0x00001a00, len 512
[ 184.776239] m25p80 spi32766.0: from 0x00001c00, len 512
[ 184.776677] m25p80 spi32766.0: from 0x00001e00, len 512
[ 184.777118] m25p80 spi32766.0: from 0x00002000, len 512
[ 184.777836] m25p80 spi32766.0: from 0x00002200, len 512
[ 184.778373] m25p80 spi32766.0: from 0x00002400, len 512
[ 184.778842] m25p80 spi32766.0: from 0x00002600, len 512
[ 184.779289] m25p80 spi32766.0: from 0x00002800, len 512
[ 184.779741] m25p80 spi32766.0: from 0x00002a00, len 512
[ 184.780189] m25p80 spi32766.0: from 0x00002c00, len 512
离线
谢谢.
离线
怎么一搜就是坑网, 试一试看下效果如何
离线