mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
Kernel: Always format MACAddress with two-byte hex digits in to_string
This commit is contained in:
parent
eb01735ec5
commit
fac1148679
Notes:
sideshowbarker
2024-07-19 12:28:39 +09:00
Author: https://github.com/deoxxa
Commit: fac1148679
Pull-request: https://github.com/SerenityOS/serenity/pull/499
Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue