Lines Matching refs:message
56 * @memo Log a message
57 * @param priority The priority of the message (see syslog man page)
58 * @param msg The message string
63 * if neither file is present, the message will be
66 void Trace::message(int priority, const char *msg) {
68 char message[MAX_MSG_PREFIX_LEN + MAX_MSG_LEN + 2];
117 /* Format the message string for the log file */
118 snprintf(message, strlen(prefix) + MAX_MSG_LEN + 2, "%s:%s\n",
121 write(fd, message, strlen(message));
123 } /* Else discard the log message */
144 message(LOG_DEBUG, "entered");
157 message(LOG_DEBUG, "exited");
165 message(STACK_TRACE, "Stack trace follows");
169 message(STACK_TRACE, msg.c_str());