Added priority field to syslog_message.
Added macros to get the priority/facility. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5335 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -19,8 +19,12 @@ struct syslog_message {
|
||||
thread_id from;
|
||||
time_t when;
|
||||
int32 options;
|
||||
int16 priority;
|
||||
char ident[B_OS_NAME_LENGTH];
|
||||
char message[1];
|
||||
};
|
||||
|
||||
#define SYSLOG_PRIORITY(options) ((options) & 0x7)
|
||||
#define SYSLOG_FACILITY(options) ((options) & 0x03f8)
|
||||
|
||||
#endif /* SYSLOG_DAEMON_H */
|
||||
|
||||
Reference in New Issue
Block a user