Skip to content

Consistent notation for VAddr/PAddr #101

Closed
@hawkw

Description

Currently, we tend to format both virtual (VAddr) and physical (PAddr) addresses using the "{:#p}" format specifier for pointers. This works fine, but makes telling whether an address is physical or virtual difficult when reading through logs, et cetera.

It'd be nice if we could have a consistent notation for these. I suggest possibly replacing "0xff00" with "Pxff00 for physical addresses and Vxff00 for virtual addresses, or appending a P/V to the end of the hex address, like 0xff00_p.

Metadata

Assignees

No one assigned

    Labels

    contrib/easyContributing: this issue likely requires less time or experience than other issues.contrib/help wantedContributing: help is requested or needed by the filer of this issue.kind/featureKind: this issue is a feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions