title: Printing leading zeroes for hexadecimal in C
body: <p>I am trying to print the results of an MD5 hash to the console and it is working for the most part. To ensure correctness, I used an online MD5 calculator to compare results. Most of the characters are the same, but a few are missing in mine and they are are all leading zeroes.</p>
  
  <p>Let me explain. The result is a 16 byte unsigned char *. I print each of these bytes one by one. Each byte prints TWO characters to the screen. However, if the first character out of the two is a zero, it does not print the zero. </p>
  
  <pre><code>printk("%x", result);
  </code></pre>
  
  <p>Result is of type unsigned char*. Am I formatting it properly or am I missing something?</p>