VMUserAddressSpace: Don't print unset reserved area name in KDL.

Reserved areas don't have the name field initialized, so explicitly
print "reserved" instead.

Change-Id: I26bcfcb8facb8b5df11a58074506e96a41943e31
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2847
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Michael Lotz
2020-08-01 19:23:27 +00:00
committed by waddlesplash
parent 7d432fc911
commit b3aed2adb5
+2 -1
View File
@@ -400,7 +400,8 @@ VMUserAddressSpace::Dump() const
kprintf(" area 0x%" B_PRIx32 ": ", area->id);
kprintf("base_addr = 0x%lx ", area->Base());
kprintf("size = 0x%lx ", area->Size());
kprintf("name = '%s' ", area->name);
kprintf("name = '%s' ",
area->id != RESERVED_AREA_ID ? area->name : "reserved");
kprintf("protection = 0x%" B_PRIx32 "\n", area->protection);
}
}