title: SCSI sense to string
body: <p>As most of the guys will know who have worked with SCSI, if a SCSI command is issued, the device can return a so called sense code with additional information.</p>
  
  <p>Basically you have 3 numbers which together have a meaning.</p>
  
  <p>Here is a list on wikipedia:
  <a href="http://en.wikipedia.org/wiki/Key_Code_Qualifier" rel="nofollow">http://en.wikipedia.org/wiki/Key_Code_Qualifier</a></p>
  
  <p>I need have a function which takes these 3 numbers and identifies what error has occured and return a char array based on it.
  I keep thinking of a good way to do it. branching if statements seem so unelegant...</p>
  
  <p>I wonder if there is an easy way to do this without some complicated functions.</p>