summaryrefslogtreecommitdiff
path: root/Kernel/Net
diff options
context:
space:
mode:
authorConrad Pankoff <deoxxa@fknsrs.biz>2019-08-28 10:47:15 +1000
committerAndreas Kling <awesomekling@gmail.com>2019-08-29 06:25:06 +0200
commitfac1148679d2aded81b4edd9e548873147e112a7 (patch)
tree7b4f09fdbb1a112b552c3436c6a9f3f7a9f39e06 /Kernel/Net
parenteb01735ec58e8854eba90a5b35313806b8bd115a (diff)
downloadserenity-fac1148679d2aded81b4edd9e548873147e112a7.zip
Kernel: Always format MACAddress with two-byte hex digits in to_string
Diffstat (limited to 'Kernel/Net')
-rw-r--r--Kernel/Net/MACAddress.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/MACAddress.h b/Kernel/Net/MACAddress.h
index bbe0b43c06..3d91775bb3 100644
--- a/Kernel/Net/MACAddress.h
+++ b/Kernel/Net/MACAddress.h
@@ -37,7 +37,7 @@ public:
String to_string() const
{
- return String::format("%b:%b:%b:%b:%b:%b", m_data[0], m_data[1], m_data[2], m_data[3], m_data[4], m_data[5]);
+ 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]);
}
private: