日期:2014-05-16  浏览次数:20556 次

问题出在哪里,帮忙判断下?
我调试一个并口驱动程序,要连续地向并口的同一个端口(8-bit)读1K的数据;

count   =1024;
cnt   =   0;
while(count--)   {
        /*读该端口*/
      ....
      cnt++;  
      printk(KERN_INFO "read   the   %i   data\n ",   cnt);
}

操作过程中,一切正常,没有报错;
但是,查看/var/log/messages文件中,发现只是内容是:
read   the   711   data
read   the   712   data
read   the   713   data
...
read   the   1024   data

不知道为什么,我不知道是我在读的时候出错了,还是/var/log/messages
只部分显示了我的printk信息,

按道理,怎么也应该从“read   the   1   data”开始啊,

很困惑中......



------解决方案--------------------
估计是只是显示一部分,学习。