summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_printf.cc
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-05-17 16:56:53 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-05-17 16:56:53 +0000
commit0b694fcab9b2f33bdd6691cbea4e80a5c27191b1 (patch)
treef1ad0a376d7cc8d035b2e8305024a6a35413ac14 /lib/sanitizer_common/sanitizer_printf.cc
parent0c547de62dc0852a03fae2d868fa571e7f5512b3 (diff)
[nolibc] Move all platforms to internal_getpid.
Before, we had an unused internal_getpid function for Linux, and a platform-independent GetPid function. To make the naming conventions consistent for syscall-like functions, the GetPid syscall wrapper in sanitizer_posix.cc is moved to sanitizer_mac.cc, and GetPid is renamed to internal_getpid, bringing the Linux variant into use. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_printf.cc')
-rw-r--r--lib/sanitizer_common/sanitizer_printf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_printf.cc b/lib/sanitizer_common/sanitizer_printf.cc
index ebb8fa07a..5935d7f17 100644
--- a/lib/sanitizer_common/sanitizer_printf.cc
+++ b/lib/sanitizer_common/sanitizer_printf.cc
@@ -218,7 +218,7 @@ static void SharedPrintfCode(bool append_pid, const char *format,
}
needed_length = 0;
if (append_pid) {
- int pid = GetPid();
+ int pid = internal_getpid();
needed_length += internal_snprintf(buffer, buffer_size, "==%d==", pid);
if (needed_length >= buffer_size) {
// The pid doesn't fit into the current buffer.