Skip to content

rust: fmt: pointer formatting is incorrect #1219

@alvinsun039

Description

@alvinsun039

When trying to output a pointer address using:

let ptr = 0xdeadbeef as *const u8;
pr_info!("ptr: {:p}", ptr);

It incorrectly outputs a stack address with a 0xffffc prefix instead of
0xdeadbeef.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions