Initial commit, as taken from sw_avb/module_avb_util/src
Simple mechanism to control when printing is enabled