NetBSD Problem Report #2964

Received: (qmail-queue invoked from smtpd); 26 Nov 1996 12:32:06 -0000
Message-Id: <m0vSMdf-00008uC@druid.druid.com>
Date: Tue, 26 Nov 1996 07:29:23 -0500 (EST)
From: darcy@druid.com
Reply-To: darcy@druid.com
To: gnats-bugs@gnats.netbsd.org,darcy@druid.com
Subject: Syslogd output confusing
X-Send-Pr-Version: 3.95

>Number:         2964
>Category:       port-i386
>Synopsis:       Syslogd output has confusing mixed number bases
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 26 04:35:02 +0000 1996
>Closed-Date:    Sat Apr 26 05:10:37 +0000 1997
>Last-Modified:  Sat Apr 26 05:11:05 +0000 1997
>Originator:     D'Arcy J.M. Cain
>Release:        NetBSD-current
>Organization:
D'Arcy J.M. Cain                           |  Democracy is three wolves
darcy@{druid.com|vex.net}                  |  and a sheep voting on         
+1 416 943 5281     (DoD#0082)    (eNTP)   |  what's for dinner.
                --  http://www.druid.com/darcy  --                       
>Environment:

System: NetBSD druid.com 1.2B NetBSD 1.2B (DRUID) #0: Sun Nov 24 10:11:21 EST 1996 darcy@druid.com:/usr/src/sys/arch/i386/compile/DRUID i386


>Description:
The output from syslogd displays the priority in octal, the flags in decimal
and puts nothing to indicate the number base.  This can be very confusing
until you discover it.
>How-To-Repeat:
Look at debug output of syslogd.
>Fix:
The following changes both to hex preceded by "0x" to make the number
base obvious.

*** ../src.original/./usr.sbin/syslogd/syslogd.c	Mon Nov 18 18:01:15 1996
--- ./usr.sbin/syslogd/syslogd.c	Fri Feb  9 07:03:21 1996
***************
*** 482,488 ****
  	int fac, msglen, omask, prilev;
  	char *timestamp;

! 	dprintf("logmsg: pri %o, flags %x, from %s, msg %s\n",
  	    pri, flags, from, msg);

  	omask = sigblock(sigmask(SIGHUP)|sigmask(SIGALRM));
--- 482,488 ----
  	int fac, msglen, omask, prilev;
  	char *timestamp;

! 	dprintf("logmsg: pri 0x%02x, flags 0x%02x, from %s, msg %s\n",
  	    pri, flags, from, msg);

  	omask = sigblock(sigmask(SIGHUP)|sigmask(SIGALRM));
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mrg 
State-Changed-When: Fri Apr 25 22:10:37 PDT 1997 
State-Changed-Why:  
added 0 to the pri (for octal) and 0x for the flags.  thanks. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.