Refactor name printError functions.
Add first part of clGetDeviceInfo.