cleanup
Avoid magic numbers
NXP-10081: specify error message into traceprinter
cosmit
cleanup