[compiler-rt] [sanitizer_common] Use %p to print addresses (PR #98578)

Rainer Orth via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 01:03:04 PDT 2024


rorth wrote:

This patch broke the [Solaris/amd64 buildbot](https://lab.llvm.org/staging/#/builders/120/builds/41): unlike e.g. glibc, Solaris `printf` doesn't emit a leading `0x` with `%p`:
- Solaris:
  ```
  0x%zx: p = 0x8050c2d
  %p   : p = 8050c2d
  ```
- Linux:
  ```
  0x%zx: p = 0x8049176
  %p   : p = 0x8049176
  ```

https://github.com/llvm/llvm-project/pull/98578


More information about the llvm-commits mailing list