Results 1 to 2 of 2
I am using the kernel version 3.4.4 and want to use printk in the file arch/arm/boot/compressed/misc.c to know the machine id , the printk is used in decompress_kernel function , ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-25-2012 #1Just Joined!
- Join Date
- Apr 2012
- Posts
- 21
printk in arch/arm/boot/compressed/misc.c undefiened reference to prk
I am using the kernel version 3.4.4 and want to use printk in the file arch/arm/boot/compressed/misc.c to know the machine id , the printk is used in decompress_kernel function , and it throws the error undefined reference to printk
using #include <linux/kernel.h> didnt help , and the same error is thrown . What is the way to use printk so that I can print the machine id .Last edited by kartikkg; 06-25-2012 at 01:35 PM.
- 06-27-2012 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,152
Given the ubiquity of printk use in the kernel, then I have to assume you are experiencing some sort of race condition where the part of the kernel that contains the implementation of printk has not been loaded when you are calling it.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
