core:  EnumType implement getPrintfFormatString

This function is needed to use enums as message parameters in reporting. Otherweise the generator will fail to emit the right value to the printf call.

This fixes #838
Merge branch 'master' of github.com:mbeddr/mbeddr.core