Dear all,

Background : I want to store the printk message checksum in the dict field of structured log entry.

What I tried : I have made a following changes in the printk.c file,

  • Calculate the message checksum using crc32_le function in vprintk_emit function
  • Append the checksum to the dict field
  • update the dict_len
  • Compile the source

After the successful compilation, I restarted the machine but it didn't start booting now.. It just got stuck..

So, I'm not sure what went wrong?

Any pointers or help is welcome...