diff --git a/services/applypatch/store.cpp b/services/applypatch/store.cpp index 39e8591099be74a3d777d210f2c07e77a6f59e63..cf6bd8cd3e8602bc089b2be2330275df89a39a17 100644 --- a/services/applypatch/store.cpp +++ b/services/applypatch/store.cpp @@ -111,7 +111,7 @@ int32_t Store::WriteDataToStore(const std::string &dirPath, const std::string &f int fd = open(pathTmp.c_str(), O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); if (fd == -1) { - LOG(ERROR) << "Failed to create store"; + LOG(ERROR) << "Failed to create store, " << strerror(errno); return -1; } if (size < 0 || !WriteFully(fd, buffer.data(), static_cast(size))) { diff --git a/services/updater.cpp b/services/updater.cpp index b70463019b32fb1c5a6b014f5d4097d7867f943a..706164b7ade1f27f33285c5d9bc6b91c3149c257 100644 --- a/services/updater.cpp +++ b/services/updater.cpp @@ -196,7 +196,7 @@ int CheckStatvfs(const uint64_t totalPkgSize) return UPDATE_ERROR; } } - + LOG(INFO) << "Number of free blocks = " << updaterVfs.f_bfree << ", Number of free inodes = " << updaterVfs.f_ffree; if (static_cast(updaterVfs.f_bfree) * static_cast(updaterVfs.f_bsize) <= totalPkgSize) { LOG(ERROR) << "Can not update, free space is not enough"; UPDATER_UI_INSTANCE.ShowUpdInfo(TR(UPD_SPACE_NOTENOUGH), true);