diff options
author | Michael Jones <michaelrj@google.com> | 2024-09-19 10:48:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 10:48:08 -0700 |
commit | f009f72df5285acab0ebb600636653d7db72a552 (patch) | |
tree | a8d8e16b7cbf670f9278c2a990edc0718b1220c5 /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | cead9044a995910306e2e64b426fcc8042d7e0ef (diff) | |
download | llvm-f009f72df5285acab0ebb600636653d7db72a552.zip llvm-f009f72df5285acab0ebb600636653d7db72a552.tar.gz llvm-f009f72df5285acab0ebb600636653d7db72a552.tar.bz2 |
[libc] Add printf strerror conversion (%m) (#105891)
This patch adds the %m conversion to printf, which prints the
strerror(errno). Explanation of why is below, this patch also updates
the docs, tests, and build system to accomodate this.
The standard for syslog in posix specifies it uses the same format as
printf, but adds %m which prints the error message string for the
current value of errno. For ease of implementation, it's standard
practice for libc implementers to just add %m to printf instead of
creating a separate parser for syslog.
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions