Lines Matching defs:log_print
66 log_print(INFO, "Using protocol %s", p->name);
92 log_print(INFO, "Sending signal to pppd (pid = %d)", pppd_pid);
110 log_print(DEBUG, "Waiting for control socket");
112 log_print(FATAL, "Cannot get control socket");
123 log_print(FATAL, "Cannot get argument length");
138 log_print(FATAL, "Cannot get argument value");
145 log_print(DEBUG, "Received %d arguments", i - 1);
169 log_print(FATAL, "Pipe() %s", strerror(errno));
193 log_print(FATAL, "Poll() %s", strerror(errno));
211 log_print(INFO, "Received signal %d", signal);
215 log_print(INFO, "Pppd is terminated (status = %d)", status);
225 log_print(INFO, "Mtpd is terminated (status = %d)", status);
229 void log_print(int level, char *format, ...)
264 log_print(INFO, "Connecting to %s port %s via %s", server, port, interface);
268 log_print(FATAL, "Getaddrinfo() %s", (error == EAI_SYSTEM) ?
286 log_print(FATAL, "Connect() %s", strerror(errno));
291 log_print(INFO, "Connection established (socket = %d)", the_socket);
297 log_print(WARNING, "Pppd is already started (pid = %d)", pppd_pid);
302 log_print(INFO, "Starting pppd (pppox = %d)", pppox);
306 log_print(FATAL, "Fork() %s", strerror(errno));
341 log_print(FATAL, "Exec() %s", strerror(errno));
345 log_print(INFO, "Pppd started (pid = %d)", pppd_pid);