Date: Sat, 31 Oct 1998 12:04:07 -0800 From: Mike Smith <mike@smith.net.au> To: "John C. Place" <jcplace@ibm.net> Cc: hackers@freebsd.com, hackers@FreeBSD.ORG Subject: Re: scanf in the kernel? Message-ID: <199810312004.MAA01039@dingo.cdrom.com> In-Reply-To: Your message of "Sat, 31 Oct 1998 14:46:49 EST." <19981031144649.A278@ka3tis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> On Fri, Oct 30, 1998 at 10:25:39AM -0500, Bill Fumerola wrote: > > I'm not a kernel-hacking kind of guy, but I know just from personal C > > experiences that scanf makes things a lot easier to change later on and > > easier to get a visual representation of. scanf and sprintf have become my > > friend. > > > I am not one either but I thought the *printf commands are very > expensive (to the processer) and something as low level as the kernel > would one try to avoid these??? One would generally try to avoid having them anywhere in a critical path, certainly, but they're not actually that expensive, and there's always a tradeoff between speed and maintainability. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810312004.MAA01039>