diff options
author | Mikhail R. Gadelha <mikhail@igalia.com> | 2023-04-17 10:16:56 -0300 |
---|---|---|
committer | Mikhail R. Gadelha <mikhail@igalia.com> | 2023-04-17 10:17:26 -0300 |
commit | 5b22df9984001d11ac279dbc3697112778f98f10 (patch) | |
tree | d74c9e419171718b14001a22fffddaa509f7a567 /libc/startup | |
parent | 722cf542dac3831740d8387ff8f4eb3528789755 (diff) | |
download | llvm-5b22df9984001d11ac279dbc3697112778f98f10.zip llvm-5b22df9984001d11ac279dbc3697112778f98f10.tar.gz llvm-5b22df9984001d11ac279dbc3697112778f98f10.tar.bz2 |
[libc][NFC] Standardize missing syscalls error messages.
This patch standardizes the error messages when a syscall is not
available to be in the format: "ABC and DEF syscalls are not available."
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D148373
Diffstat (limited to 'libc/startup')
-rw-r--r-- | libc/startup/linux/aarch64/start.cpp | 2 | ||||
-rw-r--r-- | libc/startup/linux/riscv64/start.cpp | 2 | ||||
-rw-r--r-- | libc/startup/linux/x86_64/start.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libc/startup/linux/aarch64/start.cpp b/libc/startup/linux/aarch64/start.cpp index b02ea7d..9153c44 100644 --- a/libc/startup/linux/aarch64/start.cpp +++ b/libc/startup/linux/aarch64/start.cpp @@ -34,7 +34,7 @@ static constexpr long MMAP_SYSCALL_NUMBER = SYS_mmap2; #elif SYS_mmap static constexpr long MMAP_SYSCALL_NUMBER = SYS_mmap; #else -#error "Target platform does not have SYS_mmap or SYS_mmap2 defined" +#error "mmap and mmap2 syscalls not available." #endif AppProperties app; diff --git a/libc/startup/linux/riscv64/start.cpp b/libc/startup/linux/riscv64/start.cpp index 068658c..80e7d3f1 100644 --- a/libc/startup/linux/riscv64/start.cpp +++ b/libc/startup/linux/riscv64/start.cpp @@ -29,7 +29,7 @@ static constexpr long MMAP_SYSCALL_NUMBER = SYS_mmap2; #elif SYS_mmap static constexpr long MMAP_SYSCALL_NUMBER = SYS_mmap; #else -#error "Target platform does not have SYS_mmap or SYS_mmap2 defined" +#error "mmap and mmap2 syscalls not available." #endif AppProperties app; diff --git a/libc/startup/linux/x86_64/start.cpp b/libc/startup/linux/x86_64/start.cpp index 15d5de5..eece066 100644 --- a/libc/startup/linux/x86_64/start.cpp +++ b/libc/startup/linux/x86_64/start.cpp @@ -30,7 +30,7 @@ static constexpr long mmapSyscallNumber = SYS_mmap2; #elif SYS_mmap static constexpr long mmapSyscallNumber = SYS_mmap; #else -#error "Target platform does not have SYS_mmap or SYS_mmap2 defined" +#error "mmap and mmap2 syscalls not available." #endif AppProperties app; |