Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Oct 2007 10:07:02 -0700
From:      Chuck Swiger <cswiger@mac.com>
To:        Matt Emmerton <matt@gsicomp.on.ca>
Cc:        "Tuc at T-B-O-H.NET" <ml@t-b-o-h.net>, freebsd-questions@freebsd.org
Subject:   Re: syslog marking sendmail output as "kernel:"
Message-ID:  <05D9E87B-8DDC-4DCA-89A0-C8B1EB361160@mac.com>
In-Reply-To: <00e501c81059$4baa60d0$1200a8c0@hermes>
References:  <200710170005.l9H05BYR092267@himinbjorg.tucs-beachin-obx-house.com> <00e501c81059$4baa60d0$1200a8c0@hermes>

next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 16, 2007, at 6:01 PM, Matt Emmerton wrote:
> There must be somewhere in the kernel where we're writing to the  
> syslog with an empty error string.  The syslog routines expect a  
> newline-terminated character string, so the lack of a newline  
> causes the next entry to be on the same line as the (non-existant)  
> kernel message.

Actually, syslog should be just fine without getting a trailing  
newline; from the manpage:

"    The message is identical to a printf(3) format string, except  
that `%m'
      is replaced by the current error message.  (As denoted by the  
global
      variable errno; see strerror(3).)  A trailing newline is added  
if none is
      present."

-- 
-Chuck




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?05D9E87B-8DDC-4DCA-89A0-C8B1EB361160>