Use the SYSLOG_PORT_NAME constant instead of the name directly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5330 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
41c6e8cc55
commit
9ff210a134
@ -102,7 +102,7 @@ send_syslog_message(syslog_context *context, int priority, const char *text, va_
|
|||||||
if ((context->mask & LOG_MASK(priority)) == 0)
|
if ((context->mask & LOG_MASK(priority)) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
port_id port = find_port("syslog_daemon");
|
port_id port = find_port(SYSLOG_PORT_NAME);
|
||||||
if (port < B_OK) {
|
if (port < B_OK) {
|
||||||
// apparently, there is no syslog daemon running; if asked
|
// apparently, there is no syslog daemon running; if asked
|
||||||
// for, print out the (simplified) message on stderr
|
// for, print out the (simplified) message on stderr
|
||||||
|
Loading…
Reference in New Issue
Block a user