From owner-freebsd-hackers Mon Jun 21 22:16:14 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dingo.cdrom.com (castles519.castles.com [208.214.165.83]) by hub.freebsd.org (Postfix) with ESMTP id C63F41514C for ; Mon, 21 Jun 1999 22:16:07 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id WAA00483; Mon, 21 Jun 1999 22:12:14 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199906220512.WAA00483@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Harlan Stenn Cc: hackers@freebsd.org Subject: Re: dmesg date/timestamps In-reply-to: Your message of "Mon, 21 Jun 1999 21:51:37 EDT." <23001.930016297@brown.pfcs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 21 Jun 1999 22:12:14 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > Apparently there are places that log via dmesg instead of via syslog. > > > > No. > > Perhaps I'm missing something. I know that the messages I get via nfs_msg > in nfs_socket.c I haven't been seeing in my syslogs, and when they show up > in the dmesg output they are not timestamped. > > Somebody was commenting on the same thing happening to certain SCSI > diagnostic messages. I've noticed this, too. > > Perhaps my log levels need to be adjusted. No. nfs_msg() tries to write to the controlling terminal of the process related to the I/O it's talking about. It's not trying to log anything, so of course it doesn't get logged. > > > The primary intention here is to have the messages that are in the dmesg > > > output have timestamps. > > > > No. > > Why? Because it's unnecessary; you have the timestamps in the system logfiles if you need them, otherwise they are just a space-wasting nuisance. Computing any time other than seconds-from-epoch in the kernel is _wrong_. -- \\ The mind's the standard \\ Mike Smith \\ of the man. \\ msmith@freebsd.org \\ -- Joseph Merrick \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message