From owner-freebsd-hackers Sat Mar 23 14:46:19 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA17023 for hackers-outgoing; Sat, 23 Mar 1996 14:46:19 -0800 (PST) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA16982 for ; Sat, 23 Mar 1996 14:46:10 -0800 (PST) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id XAA01292; Sat, 23 Mar 1996 23:45:46 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id XAA20143; Sat, 23 Mar 1996 23:45:45 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.7.4/8.6.9) id XAA25412; Sat, 23 Mar 1996 23:20:33 +0100 (MET) From: J Wunsch Message-Id: <199603232220.XAA25412@uriah.heep.sax.de> Subject: Re: kernel printf() To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Sat, 23 Mar 1996 23:20:33 +0100 (MET) Cc: bouvere@nikhefk.nikhef.nl Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <7472.827568155@critter.tfs.com> from "Poul-Henning Kamp" at Mar 23, 96 08:02:35 am X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Poul-Henning Kamp wrote: > > Kernel routines that call printf(), seem not to use the > > dedicated kernel routine printf(), as the %r and %b options > > are not recognized. > > %r has been removed. %b is functional: fd0c: hard error reading fsbn 120 of 108-125 \ (ST0 40 ST1 20 ST2 20 cyl 3 hd 0 sec 13) ^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^ is printed by: if (fdc->flags & FDC_STAT_VALID) { printf( " (ST0 %b ST1 %b ST2 %b cyl %ld hd %ld sec %ld)\n", fdc->status[0], NE7_ST0BITS, fdc->status[1], NE7_ST1BITS, fdc->status[2], NE7_ST2BITS, fdc->status[3], fdc->status[4], fdc->status[5]); } -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)