diff --git a/indra/llaudio/llaudioengine_fmodstudio.cpp b/indra/llaudio/llaudioengine_fmodstudio.cpp index 5bd4d4101a852777c60a7c0c6360103acf62aef0..1c2e36d5d8dabab81ad2413df999a9f03e9818c1 100644 --- a/indra/llaudio/llaudioengine_fmodstudio.cpp +++ b/indra/llaudio/llaudioengine_fmodstudio.cpp @@ -263,7 +263,7 @@ std::string LLAudioEngine_FMODSTUDIO::getDriverName(bool verbose) U32 version; if(!Check_FMOD_Error(mSystem->getVersion(&version), "FMOD::System::getVersion")) { - return absl::StrFormat("FMOD Studio %1x.%02x.%02x", version >> 16, version >> 8 & 0x000000FF, version & 0x000000FF); + return llformat("FMOD Studio %1x.%02x.%02x", version >> 16, version >> 8 & 0x000000FF, version & 0x000000FF); } } return "FMOD Studio"; diff --git a/indra/llmessage/llassetstorage.cpp b/indra/llmessage/llassetstorage.cpp index 529b7ab20c94b2dd05316284e3f1f7e25fffd297..0e5bd395696e7bd916aaed304b310f28de61d1a7 100644 --- a/indra/llmessage/llassetstorage.cpp +++ b/indra/llmessage/llassetstorage.cpp @@ -1401,7 +1401,7 @@ void LLAssetStorage::legacyGetDataCallback(LLVFS *vfs, std::string uuid_str; uuid.toString(uuid_str); - filename = absl::StrFormat("%s.%s",gDirUtilp->getExpandedFilename(LL_PATH_CACHE,uuid_str),LLAssetType::lookup(type)); + filename = llformat("%s.%s",gDirUtilp->getExpandedFilename(LL_PATH_CACHE,uuid_str).c_str(),LLAssetType::lookup(type)); LLFILE* fp = LLFile::fopen(filename, "wb"); /* Flawfinder: ignore */ if (fp) diff --git a/indra/llmessage/llcorehttputil.cpp b/indra/llmessage/llcorehttputil.cpp index 8236e63fa625fa4b78355c51c227f9ce9eef4b4b..d6e89bb16c76162f0fc755c592387c2a5b261ecb 100644 --- a/indra/llmessage/llcorehttputil.cpp +++ b/indra/llmessage/llcorehttputil.cpp @@ -1181,7 +1181,7 @@ void HttpCoroutineAdapter::checkDefaultHeaders(LLCore::HttpHeaders::ptr_t &heade if (!headers->find("X-SecondLife-UDP-Listen-Port") && gMessageSystem) { - headers->append("X-SecondLife-UDP-Listen-Port", absl::StrFormat("%d", gMessageSystem->mPort)); + headers->append("X-SecondLife-UDP-Listen-Port", llformat("%d", gMessageSystem->mPort)); } } diff --git a/indra/llmessage/llhost.cpp b/indra/llmessage/llhost.cpp index a5d8c5b67752f9ab60729a9c58c66b0120e2e960..00b32a676ab064f2b907713094a5fc5da0a5b635 100644 --- a/indra/llmessage/llhost.cpp +++ b/indra/llmessage/llhost.cpp @@ -61,7 +61,7 @@ LLHost::LLHost(const std::string& ip_and_port) std::string LLHost::getString() const { - return absl::StrFormat("%s:%u", u32_to_ip_string(mIP), mPort); + return llformat("%s:%u", u32_to_ip_string(mIP), mPort); } diff --git a/indra/llmessage/llnamevalue.cpp b/indra/llmessage/llnamevalue.cpp index 3a26b906116bc56db15371776223729bfe015878..f7c0517b4c4e338b4a921e9d75634e5c41ea6830 100644 --- a/indra/llmessage/llnamevalue.cpp +++ b/indra/llmessage/llnamevalue.cpp @@ -896,8 +896,9 @@ void LLNameValue::setVec3(const LLVector3 &a) std::string LLNameValue::printNameValue() const { - std::string buffer = absl::StrFormat("%s %s %s %s %s", - mName, mStringType, mStringClass, mStringSendto, printData()); + std::string buffer; + buffer = llformat("%s %s %s %s ", mName, mStringType, mStringClass, mStringSendto); + buffer += printData(); // LL_INFOS() << "Name Value Length: " << buffer.size() + 1 << LL_ENDL; return buffer; } @@ -912,13 +913,13 @@ std::string LLNameValue::printData() const buffer = mNameValueReference.string; break; case NVT_F32: - buffer = absl::StrFormat("%f", *mNameValueReference.f32); + buffer = llformat("%f", *mNameValueReference.f32); break; case NVT_S32: - buffer = absl::StrFormat("%d", *mNameValueReference.s32); + buffer = llformat("%d", *mNameValueReference.s32); break; case NVT_U32: - buffer = absl::StrFormat("%u", *mNameValueReference.u32); + buffer = llformat("%u", *mNameValueReference.u32); break; case NVT_U64: { @@ -928,7 +929,7 @@ std::string LLNameValue::printData() const } break; case NVT_VEC3: - buffer = absl::StrFormat("%f, %f, %f", mNameValueReference.vec3->mV[VX], mNameValueReference.vec3->mV[VY], mNameValueReference.vec3->mV[VZ]); + buffer = llformat( "%f, %f, %f", mNameValueReference.vec3->mV[VX], mNameValueReference.vec3->mV[VY], mNameValueReference.vec3->mV[VZ]); break; default: LL_ERRS() << "Trying to print unknown NameValue type " << mStringType << LL_ENDL; diff --git a/indra/llmessage/llxfer_vfile.cpp b/indra/llmessage/llxfer_vfile.cpp index 52ffc090acde9379a3ec2d7831e2629fa9a90201..ddc24342f68ce895de29d95aa8d6d87fd9da476e 100644 --- a/indra/llmessage/llxfer_vfile.cpp +++ b/indra/llmessage/llxfer_vfile.cpp @@ -72,7 +72,7 @@ void LLXfer_VFile::init (LLVFS *vfs, const LLUUID &local_id, LLAssetType::EType std::string id_string; mLocalID.toString(id_string); - mName = absl::StrFormat("VFile %s:%s", id_string, LLAssetType::lookup(mType)); + mName = llformat("VFile %s:%s", id_string.c_str(), LLAssetType::lookup(mType)); } /////////////////////////////////////////////////////////// @@ -128,7 +128,7 @@ S32 LLXfer_VFile::initializeRequest(U64 xfer_id, std::string id_string; mLocalID.toString(id_string); - mName = absl::StrFormat("VFile %s:%s", id_string, LLAssetType::lookup(mType)); + mName = llformat("VFile %s:%s", id_string.c_str(), LLAssetType::lookup(mType)); LL_INFOS("Xfer") << "Requesting " << mName << LL_ENDL; diff --git a/indra/llmessage/net.cpp b/indra/llmessage/net.cpp index e7b4e40f5b0e33cc23986fe27fb7316913b476db..739cde0d12f2801addc2de865bb704f241e2653d 100644 --- a/indra/llmessage/net.cpp +++ b/indra/llmessage/net.cpp @@ -462,7 +462,7 @@ S32 start_net(S32& socket_out, int& nPort) // Some other socket error else { - LL_WARNS() << absl::StrFormat("bind() port: %d failed, Err: %s\n", nPort, strerror(errno)) << LL_ENDL; + LL_WARNS() << llformat ("bind() port: %d failed, Err: %s\n", nPort, strerror(errno)) << LL_ENDL; // Fail gracefully in release. return 4; }