!496 fix the compile warning

Merge pull request !496 from laojr1/master
This commit is contained in:
openharmony_ci 2021-12-28 00:58:24 +00:00 committed by Gitee
commit d7fd58b986
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ osStatus_t osKernelGetInfo(osVersion_t *version, char *id_buf, uint32_t id_size)
} }
uwRet = memcpy_s(id_buf, id_size, KERNEL_ID, id_size); uwRet = memcpy_s(id_buf, id_size, KERNEL_ID, id_size);
if (uwRet != EOK) { if (uwRet != EOK) {
PRINT_ERR("%s[%d] memcpy failed, error type = %u\n", __FUNCTION__, __LINE__, uwRet); PRINT_ERR("%s[%d] memcpy failed, error type = %lu\n", __FUNCTION__, __LINE__, uwRet);
return osError; return osError;
} }
} }