diff --git a/interfaces/kits/js/src/mod_fs/properties/read_text.cpp b/interfaces/kits/js/src/mod_fs/properties/read_text.cpp index 61093e160bd254732bd4a64920b8b7fcf5063a84..17fba8f720ef944094316275ed3a3c4642f858eb 100755 --- a/interfaces/kits/js/src/mod_fs/properties/read_text.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/read_text.cpp @@ -14,6 +14,7 @@ */ #include "read_text.h" +#include #include #include #include @@ -164,7 +165,7 @@ napi_value ReadText::Sync(napi_env env, napi_callback_info info) } if (offset > statbf.st_size) { - HILOGE("Invalid offset: %{public}lld", offset); + HILOGE("Invalid offset: %{public}" PRIu64, offset); NError(EINVAL).ThrowErr(env); return nullptr; }