Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2011 10:17:14 GMT
From:      Ivan Klymenko <fidaj@ukr.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/159904: [patch] type specifier error /sys/kern/sched_4bsd.c
Message-ID:  <201108191017.p7JAHE9K046498@red.freebsd.org>
Resent-Message-ID: <201108191020.p7JAKAp9046060@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108191017.p7JAHE9K046498>