diff options
author | Robert Johnston <Robert.Johnston@Sun.COM> | 2009-05-18 13:56:12 -0700 |
---|---|---|
committer | Robert Johnston <Robert.Johnston@Sun.COM> | 2009-05-18 13:56:12 -0700 |
commit | 3ca4d65123c517bcba59dbc2e8a0d5f327972c51 (patch) | |
tree | 888d7baf6df2f59c5f4ff09b5237b7b3e8ba12be /usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c | |
parent | 6d6de4ee7da84f30d7d942184d5386d89b304030 (diff) | |
download | illumos-gate-3ca4d65123c517bcba59dbc2e8a0d5f327972c51.tar.gz |
6841968 syslog-msgs inadvertently uses wrong msg priority, causing msgs to be output to all windows
Diffstat (limited to 'usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c')
-rw-r--r-- | usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c b/usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c index 3102604b7c..1908417929 100644 --- a/usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c +++ b/usr/src/cmd/fm/modules/common/syslog-msgs/syslog.c @@ -197,13 +197,19 @@ syslog_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class) return; /* event is not to be messaged */ } - if ((msg = fmd_msg_gettext_nv(syslog_msghdl, NULL, nvl)) == NULL) { fmd_hdl_debug(hdl, "failed to format message"); syslog_stats.bad_code.fmds_value.ui64++; return; /* libfmd_msg error */ } + syslog_ctl.pri &= LOG_FACMASK; + if (strcmp(class, FM_LIST_RESOLVED_CLASS) == 0 || + strcmp(class, FM_LIST_REPAIRED_CLASS) == 0) + syslog_ctl.pri |= LOG_NOTICE; + else + syslog_ctl.pri |= LOG_ERR; + syslog_emit(hdl, msg); free(msg); } |