From owner-freebsd-bugs@FreeBSD.ORG Tue Nov 18 07:00:23 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 821FE16A4CE for ; Tue, 18 Nov 2003 07:00:23 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0472D43FCB for ; Tue, 18 Nov 2003 07:00:22 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id hAIF0LFY028840 for ; Tue, 18 Nov 2003 07:00:21 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id hAIF0LDW028839; Tue, 18 Nov 2003 07:00:21 -0800 (PST) (envelope-from gnats) Resent-Date: Tue, 18 Nov 2003 07:00:21 -0800 (PST) Resent-Message-Id: <200311181500.hAIF0LDW028839@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jan Willem Knopper Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCB5D16A4CE for ; Tue, 18 Nov 2003 06:55:59 -0800 (PST) Received: from hexagon.stack.nl (hexagon.stack.nl [131.155.140.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id 057AA43FB1 for ; Tue, 18 Nov 2003 06:55:59 -0800 (PST) (envelope-from jwk@stack.nl) Received: from turtle.stack.nl (turtle.stack.nl [IPv6:2001:610:1108:5010:2e0:81ff:fe22:51d8]) by hexagon.stack.nl (Postfix) with ESMTP id 95D96517D; Tue, 18 Nov 2003 15:55:57 +0100 (CET) Received: by turtle.stack.nl (Postfix, from userid 887) id 829D51CC71; Tue, 18 Nov 2003 15:55:57 +0100 (CET) Message-Id: <20031118145557.829D51CC71@turtle.stack.nl> Date: Tue, 18 Nov 2003 15:55:57 +0100 (CET) From: Jan Willem Knopper To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: jilles@stack.nl Subject: bin/59417: ps -o rtprio does not work X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jan Willem Knopper List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2003 15:00:23 -0000 >Number: 59417 >Category: bin >Synopsis: ps -o rtprio does not work >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 18 07:00:21 PST 2003 >Closed-Date: >Last-Modified: >Originator: Jan Willem Knopper >Release: FreeBSD 5.1-CURRENT i386 >Organization: M.C.G.V. Stack >Environment: System: FreeBSD turtle.stack.nl 5.1-CURRENT FreeBSD 5.1-CURRENT #15: Thu Oct 9 11:43:55 CEST 2003 jilles@turtle.stack.nl:/usr/obj/usr/src/sys/TURTLE i386 >Description: 'ps -o rtprio' gives junk output: for example '208:208' instead of 'normal' >How-To-Repeat: % ps -p $$ -O rtprio PID RTPRIO TT STAT TIME COMMAND 50378 208:208 pi Ss 0:00,32 -zsh (zsh) instead of jwk@turtle:/home/jwk/src/ps% ./ps -p $$ -O rtprio PID RTPRIO TT STAT TIME COMMAND 50378 normal pi Ss 0:00,33 -zsh (zsh) >Fix: patch below --- ps-print-rtprio.patch begins here --- --- /usr/src/bin/ps/print.c.orig Tue Nov 18 15:47:44 2003 +++ /usr/src/bin/ps/print.c Tue Nov 18 15:45:36 2003 @@ -655,7 +655,7 @@ unsigned class, level; v = ve->var; - lpri = (struct priority *) ((char *)k + v->off); + lpri = (struct priority *) ((char *)k->ki_p + v->off); class = lpri->pri_class; level = lpri->pri_level; switch (class) { --- ps-print-rtprio.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: