DEBUG技术 前面有写过的

        statustmp = phhalHw_FieldOff ( pHal );

        CHECK_STATUS ( statustmp );
		
		
#define CHECK_STATUS(x) \
if ((x) != PH_ERR_SUCCESS) \
{\
DEBUG_PRINTF("file: "__FILE__", function: %s,Line: %d, Error - (0x%04X) has occurred\r\n", __FUNCTION__,__LINE__, (x)); \
}

猜你喜欢

转载自blog.csdn.net/weixin_42381351/article/details/84583258