Skip to content

Commit 8e8f8ce

Browse files
threadpool: improve setprioty error message
1 parent bead7d4 commit 8e8f8ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/common.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ bool set_process_priority(enum ggml_sched_priority prio) {
285285
return true;
286286
}
287287

288-
int32_t p = 0;
288+
int p = 0;
289289
switch (prio) {
290290
case GGML_SCHED_PRIO_NORMAL: p = 0; break;
291291
case GGML_SCHED_PRIO_MEDIUM: p = -5; break;
@@ -294,7 +294,7 @@ bool set_process_priority(enum ggml_sched_priority prio) {
294294
}
295295

296296
if (!setpriority(PRIO_PROCESS, 0, p)) {
297-
fprintf(stderr, "warn: failed to set process priority class %d : %s (%d)\n", prio, strerror(errno), errno);
297+
fprintf(stderr, "warn: failed to set process priority %d : %s (%d)\n", prio, strerror(errno), errno);
298298
return false;
299299
}
300300
return true;

0 commit comments

Comments
 (0)