CLOUD: Fix format for uint64 variables

This commit is contained in:
Orgad Shaneh 2021-03-25 08:09:44 +02:00 committed by Filippos Karapetis
parent d69db0c54f
commit 1496ad6bb5
3 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ void CloudManager::save() {
Common::String name = getStorageConfigName(i);
ConfMan.set(kStoragePrefix + name + "_username", _storages[i].username, ConfMan.kCloudDomain);
ConfMan.set(kStoragePrefix + name + "_lastSync", _storages[i].lastSyncDate, ConfMan.kCloudDomain);
ConfMan.set(kStoragePrefix + name + "_usedBytes", Common::String::format("%lu", _storages[i].usedBytes), ConfMan.kCloudDomain);
ConfMan.set(kStoragePrefix + name + "_usedBytes", Common::String::format("%llu", _storages[i].usedBytes), ConfMan.kCloudDomain);
}
ConfMan.set("current_storage", Common::String::format("%u", _currentStorageIndex), ConfMan.kCloudDomain);

View File

@ -178,7 +178,7 @@ void GoogleDriveStorage::printInfo(StorageInfoResponse response) {
debug(9, "\nGoogleDriveStorage: user info:");
debug(9, "\tname: %s", response.value.name().c_str());
debug(9, "\temail: %s", response.value.email().c_str());
debug(9, "\tdisk usage: %lu/%lu", response.value.used(), response.value.available());
debug(9, "\tdisk usage: %llu/%llu", response.value.used(), response.value.available());
}
Networking::Request *GoogleDriveStorage::createDirectoryWithParentId(Common::String parentId, Common::String directoryName, BoolCallback callback, Networking::ErrorCallback errorCallback) {

View File

@ -199,7 +199,7 @@ void GoogleDriveUploadRequest::uploadNextPart() {
uint32 oldPos = _contentsStream->pos();
if (oldPos != _serverReceivedBytes) {
if (!_contentsStream->seek(_serverReceivedBytes)) {
warning("GoogleDriveUploadRequest: cannot upload because stream couldn't seek(%lu)", _serverReceivedBytes);
warning("GoogleDriveUploadRequest: cannot upload because stream couldn't seek(%llu)", _serverReceivedBytes);
finishError(Networking::ErrorResponse(this, false, true, "GoogleDriveUploadRequest::uploadNextPart: seek() didn't work", -1));
return;
}