فهرست منبع

sched_params log message incorrect

The sched_params parameter was set before being printed.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
Reviewed-by:  <sdake@redhat.com>
Steven Dake 14 سال پیش
والد
کامیت
ae4a3af340
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      exec/main.c

+ 1 - 1
exec/main.c

@@ -1305,10 +1305,10 @@ static void corosync_setscheduler (void)
 		if (res == -1) {
 			char error_str[100];
 			strerror_r (errno, error_str, 100);
-			global_sched_param.sched_priority = 0;
 			log_printf (LOGSYS_LEVEL_WARNING, "Could not set SCHED_RR at priority %d: %s\n",
 				global_sched_param.sched_priority, error_str);
 
+			global_sched_param.sched_priority = 0;
 			logsys_thread_priority_set (SCHED_OTHER, NULL, 1);
 		} else {
 			/*