fix trace output
This commit is contained in:
1 parent
21d06edf25
commit
0d6638f6bc
3 files changed
+6
-6
No files matched your search
+2
-2
@@ -147,7 +147,7 @@ std::ostream& operator<< (std::ostream& os, const Address & address)
|
||||
return os;
|
||||
}
|
||||
os.setf (std::ios::hex, std::ios::basefield);
|
||||
std::cout.fill('0');
|
||||
os.fill('0');
|
||||
for (uint8_t i=0; i < (address.m_len-1); i++)
|
||||
{
|
||||
os << std::setw(2) << (uint32_t)address.m_data[i] << ":";
|
||||
@@ -155,7 +155,7 @@ std::ostream& operator<< (std::ostream& os, const Address & address)
|
||||
// Final byte not suffixed by ":"
|
||||
os << std::setw(2) << (uint32_t)address.m_data[address.m_len-1];
|
||||
os.setf (std::ios::dec, std::ios::basefield);
|
||||
std::cout.fill(' ');
|
||||
os.fill(' ');
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ std::ostream& operator<< (std::ostream& os, const Eui48Address & address)
|
||||
address.CopyTo (ad);
|
||||
|
||||
os.setf (std::ios::hex, std::ios::basefield);
|
||||
std::cout.fill('0');
|
||||
os.fill('0');
|
||||
for (uint8_t i=0; i < 5; i++)
|
||||
{
|
||||
os << std::setw(2) << (uint32_t)ad[i] << ":";
|
||||
@@ -156,7 +156,7 @@ std::ostream& operator<< (std::ostream& os, const Eui48Address & address)
|
||||
// Final byte not suffixed by ":"
|
||||
os << std::setw(2) << (uint32_t)ad[5];
|
||||
os.setf (std::ios::dec, std::ios::basefield);
|
||||
std::cout.fill(' ');
|
||||
os.fill(' ');
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ std::ostream& operator<< (std::ostream& os, const Eui64Address & address)
|
||||
address.CopyTo (ad);
|
||||
|
||||
os.setf (std::ios::hex, std::ios::basefield);
|
||||
std::cout.fill('0');
|
||||
os.fill('0');
|
||||
for (uint8_t i=0; i < 7; i++)
|
||||
{
|
||||
os << std::setw(2) << (uint32_t)ad[i] << ":";
|
||||
@@ -158,7 +158,7 @@ std::ostream& operator<< (std::ostream& os, const Eui64Address & address)
|
||||
// Final byte not suffixed by ":"
|
||||
os << std::setw(2) << (uint32_t)ad[7];
|
||||
os.setf (std::ios::dec, std::ios::basefield);
|
||||
std::cout.fill(' ');
|
||||
os.fill(' ');
|
||||
return os;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user