Skip to content

Commit aca476b

Browse files
committed
[libomptarget] Fix typos and grammar in error messages, NFC.
llvm-svn: 365890
1 parent 60c8135 commit aca476b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openmp/libomptarget/src/interface.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ static void HandleDefaultTargetOffload() {
3333
if (TargetOffloadPolicy == tgt_default) {
3434
if (omp_get_num_devices() > 0) {
3535
DP("Default TARGET OFFLOAD policy is now mandatory "
36-
"(devicew were found)\n");
36+
"(devices were found)\n");
3737
TargetOffloadPolicy = tgt_mandatory;
3838
} else {
3939
DP("Default TARGET OFFLOAD policy is now disabled "
40-
"(devices were not found)\n");
40+
"(no devices were found)\n");
4141
TargetOffloadPolicy = tgt_disabled;
4242
}
4343
}
@@ -57,8 +57,8 @@ static void HandleTargetOutcome(bool success) {
5757
}
5858
break;
5959
case tgt_default:
60-
FATAL_MESSAGE0(1, "default offloading policy must switched to "
61-
"mandatory or disabled");
60+
FATAL_MESSAGE0(1, "default offloading policy must be switched to "
61+
"mandatory or disabled");
6262
break;
6363
case tgt_mandatory:
6464
if (!success) {

0 commit comments

Comments
 (0)