aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/syslog.h
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-03-02 09:19:15 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-03-02 09:19:15 +0000
commit8830f80880173ae1fe3decb6914879c6709ab7bf (patch)
tree6f81f7d7e6cf0061b7fb9a2f798918ddc49e1f41 /sys/sys/syslog.h
parentf78ac61b3a420bfb759adc5f71b19b8d2c131ae9 (diff)
downloadsrc-8830f80880173ae1fe3decb6914879c6709ab7bf.tar.gz
src-8830f80880173ae1fe3decb6914879c6709ab7bf.zip
Remove an extraneous shift operation. The facility macros do already
shift the value. Submitted by: Andre.Albsmeier@mchp.siemens.de (Andre Albsmeier)
Notes
Notes: svn path=/head/; revision=23252
Diffstat (limited to 'sys/sys/syslog.h')
-rw-r--r--sys/sys/syslog.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/syslog.h b/sys/sys/syslog.h
index 1fb9c870e823..cf01c03a1406 100644
--- a/sys/sys/syslog.h
+++ b/sys/sys/syslog.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)syslog.h 8.1 (Berkeley) 6/2/93
- * $Id: syslog.h,v 1.10 1997/02/22 09:46:05 peter Exp $
+ * $Id: syslog.h,v 1.11 1997/02/26 06:03:20 mpp Exp $
*/
#ifndef _SYS_SYSLOG_H_
@@ -60,7 +60,7 @@
#define LOG_PRIMASK 0x07 /* mask to extract priority part (internal) */
/* extract priority */
#define LOG_PRI(p) ((p) & LOG_PRIMASK)
-#define LOG_MAKEPRI(fac, pri) (((fac) << 3) | (pri))
+#define LOG_MAKEPRI(fac, pri) ((fac) | (pri))
#ifdef SYSLOG_NAMES
#define INTERNAL_NOPRI 0x10 /* the "no priority" priority */