summaryrefslogtreecommitdiff
path: root/AK/MACAddress.h
diff options
context:
space:
mode:
authorasynts <asynts@gmail.com>2020-10-07 14:02:42 +0200
committerAndreas Kling <kling@serenityos.org>2020-10-08 09:59:55 +0200
commit1d96d5eea44ea4813d947cca9bd84cf10733d927 (patch)
tree1aa616b739f1a894540ad08d4462e5eb2cc3f123 /AK/MACAddress.h
parent560c52989cdabe63f7773cfe32ddacb369ebc7be (diff)
downloadserenity-1d96d5eea44ea4813d947cca9bd84cf10733d927.zip
AK: Use new format functions.
Diffstat (limited to 'AK/MACAddress.h')
-rw-r--r--AK/MACAddress.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/MACAddress.h b/AK/MACAddress.h
index e511da23f1..dd0977ed8e 100644
--- a/AK/MACAddress.h
+++ b/AK/MACAddress.h
@@ -62,7 +62,7 @@ public:
String to_string() const
{
- return String::format("%02x:%02x:%02x:%02x:%02x:%02x", m_data[0], m_data[1], m_data[2], m_data[3], m_data[4], m_data[5]);
+ return String::formatted("{:02x}:{:02x}:{:02x}:{:02x}:{:02x}:{:02x}", m_data[0], m_data[1], m_data[2], m_data[3], m_data[4], m_data[5]);
}
bool is_zero() const