kern/159904: [patch] type specifier error /sys/kern/sched_4bsd.c

Ivan Klymenko fidaj at ukr.net
Fri Aug 19 10:20:10 UTC 2011


>Number:         159904
>Category:       kern
>Synopsis:       [patch] type specifier error /sys/kern/sched_4bsd.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 19 10:20:09 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Ivan Klymenko
>Release:        FreeBSD 9.0-BETA1 amd64
>Organization:
individual
>Environment:
>Description:

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- sched_4bsd.c.orig	2011-08-19 13:10:21.000000000 +0300
+++ sched_4bsd.c	2011-08-19 13:10:46.000000000 +0300
@@ -720,7 +720,7 @@
 {
 
 	KTR_STATE1(KTR_SCHED, "thread", sched_tdname(td), "proc exit",
-	    "prio:td", td->td_priority);
+	    "prio:%d", td->td_priority);
 
 	PROC_LOCK_ASSERT(p, MA_OWNED);
 	sched_exit_thread(FIRST_THREAD_IN_PROC(p), td);
@@ -731,7 +731,7 @@
 {
 
 	KTR_STATE1(KTR_SCHED, "thread", sched_tdname(child), "exit",
-	    "prio:td", child->td_priority);
+	    "prio:%d", child->td_priority);
 	thread_lock(td);
 	td->td_estcpu = ESTCPULIM(td->td_estcpu + child->td_estcpu);
 	thread_unlock(td);


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list