summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-01-04 17:11:49 -0500
committerGabe Black <gblack@eecs.umich.edu>2011-01-04 17:11:49 -0500
commit498ea0bdab4d092a9c7dad648f80d1132fd7e145 (patch)
tree9901790f0222f5dcbc1aae4313908c7eaffe1961 /src
parent89cf3f6e853e3d9a95536372ab78a4a11a8c6ad1 (diff)
downloadgem5-498ea0bdab4d092a9c7dad648f80d1132fd7e145.tar.xz
Params: Print the IP components in the right order.
Diffstat (limited to 'src')
-rw-r--r--src/base/inet.cc4
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;
}