From: Gabe Black Date: Tue, 4 Jan 2011 22:11:49 +0000 (-0500) Subject: Params: Print the IP components in the right order. X-Git-Tag: stable_2012_02_02~682 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=498ea0bdab4d092a9c7dad648f80d1132fd7e145;p=gem5.git Params: Print the IP components in the right order. --- 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; }