Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 1996 23:20:33 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Cc:        bouvere@nikhefk.nikhef.nl
Subject:   Re: kernel printf()
Message-ID:  <199603232220.XAA25412@uriah.heep.sax.de>
In-Reply-To: <7472.827568155@critter.tfs.com> from "Poul-Henning Kamp" at Mar 23, 96 08:02:35 am

next in thread | previous in thread | raw e-mail | index | archive | help
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<abnrml> ST1 20<bad_crc> ST2 20<bad_crc> 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. ;-)



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