[libomptarget] Fix typos and grammar in error messages, NFC.
git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@365890 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/libomptarget/src/interface.cpp b/libomptarget/src/interface.cpp
index 9b487ca..52850ee 100644
--- a/libomptarget/src/interface.cpp
+++ b/libomptarget/src/interface.cpp
@@ -33,11 +33,11 @@
if (TargetOffloadPolicy == tgt_default) {
if (omp_get_num_devices() > 0) {
DP("Default TARGET OFFLOAD policy is now mandatory "
- "(devicew were found)\n");
+ "(devices were found)\n");
TargetOffloadPolicy = tgt_mandatory;
} else {
DP("Default TARGET OFFLOAD policy is now disabled "
- "(devices were not found)\n");
+ "(no devices were found)\n");
TargetOffloadPolicy = tgt_disabled;
}
}
@@ -57,8 +57,8 @@
}
break;
case tgt_default:
- FATAL_MESSAGE0(1, "default offloading policy must switched to "
- "mandatory or disabled");
+ FATAL_MESSAGE0(1, "default offloading policy must be switched to "
+ "mandatory or disabled");
break;
case tgt_mandatory:
if (!success) {