fix debug message

convert enum ctype to number for proper debug printout
Merge pull request #258 from hwhw/master

fix debug message