diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-01-04 17:11:49 -0500 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-01-04 17:11:49 -0500 |
commit | 498ea0bdab4d092a9c7dad648f80d1132fd7e145 (patch) | |
tree | 9901790f0222f5dcbc1aae4313908c7eaffe1961 | |
parent | 89cf3f6e853e3d9a95536372ab78a4a11a8c6ad1 (diff) | |
download | gem5-498ea0bdab4d092a9c7dad648f80d1132fd7e145.tar.xz |
Params: Print the IP components in the right order.
-rw-r--r-- | src/base/inet.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/inet.cc b/src/base/inet.cc index e4612c02d..0fb864dab 100644 --- a/src/base/inet.cc +++ b/src/base/inet.cc @@ -138,8 +138,8 @@ operator<<(ostream &stream, const IpAddress &ia) { uint32_t ip = ia.ip(); ccprintf(stream, "%x.%x.%x.%x", - (uint8_t)(ip >> 0), (uint8_t)(ip >> 8), - (uint8_t)(ip >> 16), (uint8_t)(ip >> 24)); + (uint8_t)(ip >> 24), (uint8_t)(ip >> 16), + (uint8_t)(ip >> 8), (uint8_t)(ip >> 0)); return stream; } |