[all-commits] [llvm/llvm-project] dd51ae: [libc] Fix printf %p format
michaelrj-google via All-commits
all-commits at lists.llvm.org
Thu Sep 7 14:13:50 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dd51ae81d8d3a24fbe3839686a1e18569fbd5330
https://github.com/llvm/llvm-project/commit/dd51ae81d8d3a24fbe3839686a1e18569fbd5330
Author: Michael Jones <michaelrj at google.com>
Date: 2023-09-07 (Thu, 07 Sep 2023)
Changed paths:
M libc/src/stdio/printf_core/ptr_converter.h
M libc/test/src/stdio/sprintf_test.cpp
Log Message:
-----------
[libc] Fix printf %p format
The %p format wasn't correctly passing along flags and modifiers to the
integer conversion behind the scenes. This patch fixes that behavior, as
well as changing the nullptr behavior to be a string conversion behind
the scenes.
Reviewed By: lntue, jhuber6
Differential Revision: https://reviews.llvm.org/D159458
More information about the All-commits
mailing list