ChinaUnix.net
相关文章推荐:

ARM printk无法打印

编译不过去,当前public函数中加声明了之后,可以编译通过,但好像不好用。

by aero - C/C++ - 2009-08-14 16:50:12 阅读(1325) 回复(5)

相关讨论

printk打印消息时,会打印出来很多乱七八糟的东西,弄的想看的信息都看不清楚,向下面这个样子: Message from syslogd@localhost at Wed Feb 15 16:05:59 2006 ... localhost kernel: *****Message length is 2. 有没有办法把多余的信息给去掉?

by wwwspirit - 内核/嵌入技术 - 2006-02-15 15:25:34 阅读(739) 回复(2)

写了个simple helloworld modules in linux kernel 2.6.8 but printk(KERN_ALERT "kkkkkkkkkkkkkk\n") can not print the message to current tty, but can see it at '/proc/kmsg' how to solve this problem? thanks a lot

by bleem1998 - C/C++ - 2005-04-01 14:15:35 阅读(3971) 回复(3)

如题!! 我找找找,找不找,有知道的牢烦一下,感激不尽,急用的!!

by wuhuaguoshu - 内核/嵌入技术 - 2006-09-12 11:11:25 阅读(1107) 回复(4)

请大家帮助。 我升级了内核从2.4-2.6.12。但是当编写了2.6的模块的时候,编译各项都正常,就是在insmod的时候,能够正常加载,但是却没有printk打印信息。 模块肯定已经正常的加载上了,也可以调用rmmod写在模块。我用的程序是一个教程程序,肯定也没有问题。 在我的makefile中。编译时使用的是一个/lib/modules/2.6.9...的目录。其中也有prink的声名。但就是不知为什么没有信息。 /lin/module下还有一个目录是2.6.12的,但是当...

by youyuas - 内核/嵌入技术 - 2005-08-05 14:22:14 阅读(848) 回复(1)

我在arm上移植了一个qmail。 源代码: qmail-1.03 相关插件: qmail-smtpd-auth-0.31 ucspi-tcp-0.88 checkpassword-0.90.tar.gz cmd5checkpw-0.22.tar.gz 移植目录: 1、/var/qmail [root@fa /]# ls /var/qmail alias boot pop3 rc tcp.smtp users bin control queue smtp tcp.smtp.cdb 2、/usr/local/bin [root@fa /]# ls /usr/local/bin addcr finger@ mconnect-io tcpclient wh...

by lionman - 服务器应用 - 2006-07-31 17:52:53 阅读(1517) 回复(1)

提示: MISC:Can not locate your MiniGUI.cfg file or bad files! InitGUI:Initialization of misc things failure. 我的板子是smdk2410的, 编译命令如下: arm-linux-gcc -I/usr/local/minigui1.6.10/include -L/usr/local/minigui1.6.10/lib -O2 -o xxx xxx.c -lminigui -lmgext -lm -ljpeg -static 我把MiniGUI.cfg放在根文件系统的/usr/local 内容为: # MiniGUI Ver 2.0.3/1.6.9 # This configuration file is fo...

by zealane - GUI编程 - 2008-09-04 08:53:46 阅读(3445) 回复(1)

为什么我在linux-2.4.23/arch/ppc/kernel/setup.c 的early_init(int r3, int r4, int r5)函数里面加入pringk()函数一进内核就会死掉?大家能指点下吗?

by nwpuecict - 内核/嵌入技术 - 2006-09-21 23:24:59 阅读(790) 回复(0)

printk(KERN_INFO "Goodbye world \n"); 我查了一个KERN_INFO是个define #define KERN_INFO "<6>" 那么这个函数就等于 printk(“<6>” "Goodbye world \n"); 这个语法正确吗? [ 本帖最后由 tianlijian 于 2009-4-29 10:04 编辑 ]

by tianlijian - C/C++ - 2009-04-29 10:40:42 阅读(1510) 回复(5)

通过printk打你希望追踪的消息。从它的名字可以看出,这个东西有点类似与gnu c中的printf。不过用于内核的东西总该有些特色,printk添加了一些日志级别(loglevel),具体日志级别定义的宏在。 (printk的格式:printk(KERN_ALERT"The process is \"%s\"(pid %i)\n",current->comm,current->pid)) 。 这些宏定义的注释已经很详细了。 #define KERN_EMERG "" /* system is unusable */ #define KERN_ALERT "" /* action must...

by k_ewell - BSD文档中心 - 2008-11-28 14:12:39 阅读(1753) 回复(0)

我刚学习设备驱动的开发。看《Linux 设备驱动程序》一书的初级例子。 /*ModuleDemo.cpp*/ #include #include int init_module() { printk( "Hello module world!" ); return 0; } void cleanup_module() { printk( "Goodby cruel world!" ); } 我在Redhat下编译: g++ -I /usr/src/linux/include -g ModuleDemo.cpp -o ModuleDemo 但编译不能通过,提示: printk un...

by homegirl - 程序开发 - 2006-08-27 10:03:52 阅读(672) 回复(3)