这次遇到一个格式输出异常,记录一下
编译环境:
问题代码:
printf("PortOut: %13d : ", printf_statistics_flag[portNum].attempted_to_receive);
其中attempted_to_receive为long long类型
错误显示:
进行初始化之后打印仍然为
发现数据越界
修正后:
目前打印数据均为0
这次遇到一个格式输出异常,记录一下
编译环境:
问题代码:
printf("PortOut: %13d : ", printf_statistics_flag[portNum].attempted_to_receive);
其中attempted_to_receive为long long类型
错误显示:
进行初始化之后打印仍然为
发现数据越界
修正后:
目前打印数据均为0