1/* |
2 * Copyright (c) 2011-2012 ARM Limited |
3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 324 unchanged lines hidden (view full) --- 335 336void 337Packet::print(ostream &o, const int verbosity, const string &prefix) const 338{ 339 ccprintf(o, "%s[%x:%x] %s\n", prefix, 340 getAddr(), getAddr() + getSize() - 1, cmdString()); 341} 342 |
343std::string 344Packet::print() const { 345 ostringstream str; 346 print(str); 347 return str.str(); 348} 349 |
350Packet::PrintReqState::PrintReqState(ostream &_os, int _verbosity) 351 : curPrefixPtr(new string("")), os(_os), verbosity(_verbosity) 352{ 353 labelStack.push_back(LabelStackEntry("", curPrefixPtr)); 354} 355 356Packet::PrintReqState::~PrintReqState() 357{ --- 51 unchanged lines hidden --- |