mem: minor dprintf fix to abstract mem

print number of bytes written as a decimal number, not hex
This commit is contained in:
Brad Beckmann 2016-09-29 01:06:33 -04:00
parent 109cc2caa6
commit f0971354c4

View file

@ -406,7 +406,7 @@ AbstractMemory::access(PacketPtr pkt)
if (writeOK(pkt)) { if (writeOK(pkt)) {
if (pmemAddr) { if (pmemAddr) {
memcpy(hostAddr, pkt->getConstPtr<uint8_t>(), pkt->getSize()); memcpy(hostAddr, pkt->getConstPtr<uint8_t>(), pkt->getSize());
DPRINTF(MemoryAccess, "%s wrote %x bytes to address %x\n", DPRINTF(MemoryAccess, "%s wrote %i bytes to address %x\n",
__func__, pkt->getSize(), pkt->getAddr()); __func__, pkt->getSize(), pkt->getAddr());
} }
assert(!pkt->req->isInstFetch()); assert(!pkt->req->isInstFetch());