svn commit: r242634 - head/share/examples/ses/srcs

Alexander Motin mav at FreeBSD.org
Mon Nov 5 23:20:49 UTC 2012


Author: mav
Date: Mon Nov  5 23:20:48 2012
New Revision: 242634
URL: http://svnweb.freebsd.org/changeset/base/242634

Log:
  Rise priority of the informational messages from LOG_INFO to LOG_NOTICE,
  same as used for OK status. Otherwise it looks strange when OK status is
  reported, while informational is not.

Modified:
  head/share/examples/ses/srcs/sesd.c

Modified: head/share/examples/ses/srcs/sesd.c
==============================================================================
--- head/share/examples/ses/srcs/sesd.c	Mon Nov  5 23:05:14 2012	(r242633)
+++ head/share/examples/ses/srcs/sesd.c	Mon Nov  5 23:20:48 2012	(r242634)
@@ -142,9 +142,8 @@ main(int a, char **v)
 				    "%s: Enclosure Status OK", v[dev]);
 			}
 			if (stat & SES_ENCSTAT_INFO) {
-				syslog(LOG_INFO,
-				    "%s: Enclosure Status Has Information",
-				    v[dev]);
+				syslog(LOG_NOTICE,
+				    "%s: Enclosure Has Information", v[dev]);
 			}
 			if (stat & SES_ENCSTAT_NONCRITICAL) {
 				syslog(LOG_WARNING,


More information about the svn-src-head mailing list