Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts