Home
last modified time | relevance | path

Searched refs:daemon_log (Results 1 – 12 of 12) sorted by relevance

/external/libdaemon/examples/
Dtestd.c45 daemon_log(LOG_ERR, "Failed to reset all signal handlers: %s", strerror(errno)); in main()
51 daemon_log(LOG_ERR, "Failed to unblock all signals: %s", strerror(errno)); in main()
66 daemon_log(LOG_WARNING, "Failed to kill daemon: %s", strerror(errno)); in main()
73 daemon_log(LOG_ERR, "Daemon already running on PID file %u", pid); in main()
79 daemon_log(LOG_ERR, "Failed to create pipe."); in main()
95daemon_log(LOG_ERR, "Could not recieve return value from daemon process: %s", strerror(errno)); in main()
99 daemon_log(ret != 0 ? LOG_ERR : LOG_INFO, "Daemon returned %i as return value.", ret); in main()
108 daemon_log(LOG_ERR, "Failed to close all file descriptors: %s", strerror(errno)); in main()
117 daemon_log(LOG_ERR, "Could not create PID file (%s).", strerror(errno)); in main()
124 daemon_log(LOG_ERR, "Could not register signal handlers (%s).", strerror(errno)); in main()
[all …]
/external/avahi/avahi-autoipd/
Dmain.c233 daemon_log(LOG_ERR, "fopen() failed: %s", strerror(errno)); in load_address()
238 daemon_log(LOG_ERR, "Parse failure"); in load_address()
263 daemon_log(LOG_ERR, "fopen() failed: %s", strerror(errno)); in save_address()
400 DEBUG(daemon_log(LOG_DEBUG, "State iteration %s-%i", state_table[state], n_iteration)); in set_state()
402 …DEBUG(daemon_log(LOG_DEBUG, "State transition %s-%i -> %s-0", state_table[state], n_iteration, sta… in set_state()
422 daemon_log(LOG_ERR, "socket() failed: %s", strerror(errno)); in interface_up()
428 daemon_log(LOG_ERR, "if_indextoname() failed: %s", strerror(errno)); in interface_up()
433 daemon_log(LOG_ERR, "SIOCGIFFLAGS failed: %s", strerror(errno)); in interface_up()
440 daemon_log(LOG_ERR, "SIOCSIFFLAGS failed: %s", strerror(errno)); in interface_up()
468 daemon_log(LOG_ERR, "socket() failed: %s", strerror(errno)); in open_socket()
[all …]
Diface-bsd.c116 daemon_log(LOG_ERR, "socket(PF_ROUTE): %s", strerror(errno)); in iface_init()
153 daemon_log(LOG_ERR, "sysctl(NET_RT_IFLIST): %s", in iface_get_initial_state()
160 daemon_log(LOG_ERR, "malloc(%d): %s", len, strerror(errno)); in iface_get_initial_state()
165 daemon_log(LOG_ERR, "sysctl(NET_RT_IFLIST): %s", in iface_get_initial_state()
240 daemon_log(LOG_ERR, "malloc(%d): %s", sizeof(*di), in rtm_dispatch()
248 daemon_log(LOG_ERR, "calloc(%d): %s", MAX_RTMSG_SIZE, in rtm_dispatch()
266 daemon_log(LOG_ERR, "recvmsg(): %s", in rtm_dispatch()
275 daemon_log(LOG_ERR, in rtm_dispatch()
291 daemon_log(LOG_DEBUG, "%s: rtm_type %d ignored", __func__, rtm->rtm_type); in rtm_dispatch()
317 daemon_log(LOG_DEBUG, "%s: IFANNOUNCE for ifindex %d", in rtm_dispatch_ifannounce()
[all …]
Diface-linux.c70 daemon_log(LOG_ERR, "socket(PF_NETLINK): %s", strerror(errno)); in iface_init()
80 daemon_log(LOG_ERR, "bind(): %s", strerror(errno)); in iface_init()
85 daemon_log(LOG_ERR, "SO_PASSCRED: %s", strerror(errno)); in iface_init()
115 daemon_log(LOG_ERR, "Interface vanished."); in process_nlmsg()
124 daemon_log(LOG_ERR, "Interface not suitable."); in process_nlmsg()
207 daemon_log(LOG_ERR, "recvmsg() failed: %s", strerror(errno)); in process_response()
212 daemon_log(LOG_WARNING, "No sender credentials received, ignoring data."); in process_response()
226 daemon_log(LOG_ERR, "Netlink packet too small."); in process_response()
237 daemon_log(LOG_ERR, "Netlink error: %s", strerror(-e->error)); in process_response()
273 daemon_log(LOG_ERR, "send(): %s", strerror(errno)); in iface_get_initial_state()
[all …]
/external/libdaemon/libdaemon/
Ddfork.c125 daemon_log(LOG_ERR, "dup(): %s", strerror(errno)); in move_fd_up()
148 daemon_log(LOG_ERR, "sigemptyset() failed: %s", strerror(errno)); in daemon_fork()
153 daemon_log(LOG_ERR, "sigaddset() failed: %s", strerror(errno)); in daemon_fork()
158 daemon_log(LOG_ERR, "sigaction() failed: %s", strerror(errno)); in daemon_fork()
163 daemon_log(LOG_ERR, "sigprocmask() failed: %s", strerror(errno)); in daemon_fork()
173 daemon_log(LOG_ERR, "pipe() failed: %s", strerror(errno)); in daemon_fork()
184 daemon_log(LOG_ERR, "First fork() failed: %s", strerror(errno)); in daemon_fork()
206 daemon_log(LOG_ERR, "close() failed: %s", strerror(errno)); in daemon_fork()
220 daemon_log(LOG_ERR, "Failed to open /dev/null for STDIN: %s", strerror(errno)); in daemon_fork()
225 daemon_log(LOG_ERR, "Failed to open /dev/null for STDOUT: %s", strerror(errno)); in daemon_fork()
[all …]
Ddexec.c63 daemon_log(LOG_ERR, "pipe() failed: %s", strerror(errno)); in daemon_execv()
68 daemon_log(LOG_ERR, "fork() failed: %s", strerror(errno)); in daemon_execv()
83 daemon_log(LOG_ERR, "dup2: %s", strerror(errno)); in daemon_execv()
89 daemon_log(LOG_ERR, "dup2: %s", strerror(errno)); in daemon_execv()
103 daemon_log(LOG_ERR, "Unable to open /dev/null as STDIN"); in daemon_execv()
114 daemon_log(LOG_WARNING, "Failed to change to directory '%s'", dir); in daemon_execv()
125 daemon_log(LOG_ERR, "execv(%s) failed: %s", prog, strerror(errno)); in daemon_execv()
149 daemon_log(LOG_ERR, "select() failed: %s", strerror(errno)); in daemon_execv()
170 daemon_log(LOG_INFO, "client: %s", buf); in daemon_execv()
188 daemon_log(LOG_WARNING, "Killing child."); in daemon_execv()
[all …]
Ddsignal.c53 daemon_log(LOG_ERR, "pipe(): %s", strerror(errno)); in _init()
74 daemon_log(LOG_ERR, "sigemptyset(): %s", strerror(errno)); in daemon_signal_install()
79 daemon_log(LOG_ERR, "sigaddset(): %s", strerror(errno)); in daemon_signal_install()
84 daemon_log(LOG_ERR, "sigprocmask(): %s", strerror(errno)); in daemon_signal_install()
94 daemon_log(LOG_ERR, "sigaction(%s, ...) failed: %s", strsignal(s), strerror(errno)); in daemon_signal_install()
149 daemon_log(LOG_ERR, "read(signal_pipe[0], ...): %s", strerror(errno)); in daemon_signal_next()
154 daemon_log(LOG_ERR, "Short read() on signal pipe."); in daemon_signal_next()
Ddpid.c92 daemon_log(LOG_WARNING, "fcntl(F_SETLKW) failed: %s", strerror(errno)); in lock_file()
116 daemon_log(LOG_WARNING, "Failed to open PID file: %s", strerror(errno)); in daemon_pid_file_is_running()
127 daemon_log(LOG_WARNING, "read(): %s", strerror(errno)); in daemon_pid_file_is_running()
141 daemon_log(LOG_WARNING, "PID file corrupt, removing. (%s)", fn); in daemon_pid_file_is_running()
149daemon_log(LOG_WARNING, "Process %lu died: %s; trying to remove PID file. (%s)", (unsigned long) p… in daemon_pid_file_is_running()
231 daemon_log(LOG_ERR, "open(%s): %s", fn, strerror(errno)); in daemon_pid_file_create()
247 daemon_log(LOG_WARNING, "write(): %s", strerror(errno)); in daemon_pid_file_create()
Ddlog.c46 daemon_log(LOG_ERR, "The value %d is not a valid priority value", verbosity_prio); in daemon_set_verbosity()
78 void daemon_log(int prio, const char* template, ...) { in daemon_log() function
Ddlog.h71 void daemon_log(int prio, const char* t, ...) DAEMON_GCC_PRINTF_ATTR(2,3);
/external/avahi/avahi-dnsconfd/
Dmain.c146 daemon_log(LOG_ERR, "socket(): %s", strerror(errno)); in open_socket()
151 daemon_log(LOG_ERR, "fcntl(): %s", strerror(errno)); in open_socket()
161 daemon_log(LOG_ERR, "connect(): %s", strerror(errno)); in open_socket()
162 daemon_log(LOG_INFO, "Failed to connect to the daemon. This probably means that you"); in open_socket()
163 daemon_log(LOG_INFO, "didn't start avahi-daemon before avahi-dnsconfd."); in open_socket()
279 daemon_log(LOG_WARNING, "Failed to run script"); in run_script()
281 daemon_log(LOG_WARNING, "Script returned with non-zero exit code %i", ret); in run_script()
289 daemon_log(LOG_ERR, "Avahi command failed: %s", l); in new_line()
293 daemon_log(LOG_INFO, "Successfully connected to Avahi daemon."); in new_line()
304 daemon_log(LOG_ERR, "Avahi sent us an invalid browsing line: %s", l); in new_line()
[all …]
/external/avahi/avahi-daemon/
Dmain.c903 daemon_log(log_level_map[level], "%s", txt); in log_function()