added BSD_CONST #define and changed return code layer defines into logging fucntions when debug is on
added BSD_CONST #define and changed return code layer defines into logging fucntions when debug is on

Distrotech/trousers,Distrotech/trousers,emilcondrea/trousers,emilcondrea/trousers,emilcondrea/trousers,Distrotech/trousers