physmem: Improved fatal message for size mismatch
--HG-- extra : rebase_source : 16da1c63263f8fd6fef9a842c577343cd6246a35
This commit is contained in:
parent
9aea847f58
commit
cecbdb6d79
1 changed files with 2 additions and 1 deletions
|
@ -557,7 +557,8 @@ PhysicalMemory::unserialize(Checkpoint *cp, const string §ion)
|
|||
|
||||
UNSERIALIZE_SCALAR(_size);
|
||||
if (size() > params()->range.size())
|
||||
fatal("Memory size has changed!\n");
|
||||
fatal("Memory size has changed! size %lld, param size %lld\n",
|
||||
size(), params()->range.size());
|
||||
|
||||
pmemAddr = (uint8_t *)mmap(NULL, size(),
|
||||
PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
|
||||
|
|
Loading…
Reference in a new issue