From owner-cvs-all Tue Aug 17 16:19:24 1999 Delivered-To: cvs-all@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 64B9714E1D; Tue, 17 Aug 1999 16:19:05 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id IAA14035; Wed, 18 Aug 1999 08:48:10 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id IAA14042; Wed, 18 Aug 1999 08:48:08 +0930 (CST) Date: Wed, 18 Aug 1999 08:48:08 +0930 From: Greg Lehey To: Bill Fumerola Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: HEADS UP: devtoname (was: cvs commit: src/sys/cam/scsi scsi_pt.c src/sys/sys conf.h src/sys/i386/isa spkr.c src/sys/kern kern_conf.c) Message-ID: <19990818084808.M7187@freebie.lemis.com> References: <199908172025.NAA68085@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <199908172025.NAA68085@freefall.freebsd.org>; from Bill Fumerola on Tue, Aug 17, 1999 at 01:25:51PM -0700 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk On Tuesday, 17 August 1999 at 13:25:51 -0700, Bill Fumerola wrote: > billf 1999/08/17 13:25:50 PDT > > Modified files: > sys/cam/scsi scsi_pt.c > sys/sys conf.h > sys/i386/isa spkr.c > sys/kern kern_conf.c > Log: > Welcome devtoname(), to most likely be used when printing information > about a dev_t. > > printf("%x", dev) now becomes printf("%s", devtoname(dev)) because > printing actual information about the device is much more useful then > printing a pointer to an address that would never help the developer debug. This is nice stuff. I think it's worth a heads up. It's far too easy to miss this kind of thing in the daily flood of updated $Id$ strings. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message