Replace StringPrintf() with fmt::format()
Bug: 196298216
Test: cd packages/modules/DnsResolver && atest
Change-Id: I581c282bba1527afd2be9daf925e9ec5bd2e5cd6
diff --git a/Dns64Configuration.cpp b/Dns64Configuration.cpp
index 77a27e7..2f2be40 100644
--- a/Dns64Configuration.cpp
+++ b/Dns64Configuration.cpp
@@ -36,7 +36,6 @@
namespace android {
-using android::base::StringPrintf;
using android::net::NetworkDnsEventReported;
using netdutils::DumpWriter;
using netdutils::IPAddress;
@@ -65,7 +64,7 @@
// Note that capturing |cfg| in this lambda creates a copy.
std::thread discovery_thread([this, cfg, netId] {
- setThreadName(StringPrintf("Nat64Pfx_%u", netId).c_str());
+ setThreadName(fmt::format("Nat64Pfx_{}", netId));
// Make a mutable copy rather than mark the whole lambda mutable.
// No particular reason.