【标题描述】
执行接口失败未明确给出报错信息;参数类型不正常未给出提示
【环境信息】
软件信息
OS版本及分支信息:
cat /etc/openEuler-latest
openeulerversion=openEuler-22.03-LTS-SP3
compiletime=2023-12-12-12-06-25
gccversion=10.3.1-42.oe2203sp3
kernelversion=5.10.0-176.0.0.89.oe2203sp3
openjdkversion=1.8.0.392.b08-2.oe2203sp3
发现问题的组件版本信息:powerapi-devel-1.0.0-2
【问题复现步骤】
dnf install -y powerapi-devel
demo_main.c中接口调用顺序如下:
TEST_PWR_SetLogCallback();
TEST_PWR_Register();
TEST_PWR_RequestControlAuth();
ret = PWR_CPU_DmaSetLatency("abc");
PrintResult("PWR_CPU_DmaSetLatency", ret);
la = -1;
ret = PWR_CPU_DmaGetLatency(&la);
PrintResult("PWR_CPU_DmaGetLatency", ret);
printf("latency: %d\n", la);
PWR_ReleaseControlAuth();
PWR_UnRegister();
执行./demo_main
【预期结果】
执行失败,给出错误提示
【实际结果】
未给出错误提示,如下图所示:
【其他相关附件信息】
比如系统message日志/组件日志、dump信息、图片等
Hi wenjunryou, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: sig-power-efficient, and any of the maintainers: @queyanwen , @wuhaotian , @Jimmy Jiang Junior
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
已经提示接口调用返回值为8, 可以对照接口描述。8的含义为"非法policy".
非问题!
确认为非问题,关闭
登录 后才可以发表评论