Home
last modified time | relevance | path

Searched refs:syslog (Results 1 – 25 of 424) sorted by relevance

12345678910>>...17

/external/python/cpython3/Lib/test/
Dtest_syslog.py3 syslog = support.import_module("syslog") #skip if not supported variable
13 syslog.openlog('python')
15 self.assertRaises(UnicodeEncodeError, syslog.openlog, '\uD800')
18 syslog.openlog('python')
19 syslog.syslog('test message from python test_syslog')
20 syslog.syslog(syslog.LOG_ERR, 'test error from python test_syslog')
23 syslog.openlog('python')
24 syslog.closelog()
27 syslog.setlogmask(syslog.LOG_DEBUG)
30 syslog.LOG_MASK(syslog.LOG_INFO)
[all …]
/external/ltp/testcases/kernel/syscalls/syslog/
Dsyslogtst.c96 syslog(LOG_MAIL | LOG_INFO, "syslogtst: mail info test."); in main()
101 syslog(LOG_MAIL | LOG_EMERG, in main()
105 syslog(LOG_MAIL | LOG_ALERT, in main()
109 syslog(LOG_MAIL | LOG_CRIT, in main()
113 syslog(LOG_MAIL | LOG_ERR, "syslogtst: mail err test."); in main()
116 syslog(LOG_MAIL | LOG_WARNING, in main()
120 syslog(LOG_MAIL | LOG_NOTICE, in main()
124 syslog(LOG_MAIL | LOG_INFO, in main()
128 syslog(LOG_MAIL | LOG_DEBUG, in main()
136 syslog(LOG_DAEMON | LOG_INFO, "syslogtst: daemon info test."); in main()
[all …]
/external/python/cpython3/Doc/library/
Dsyslog.rst1 :mod:`syslog` --- Unix syslog library routines
4 .. module:: syslog
6 :synopsis: An interface to the Unix syslog library routines.
10 This module provides an interface to the Unix ``syslog`` library routines.
11 Refer to the Unix manual pages for a detailed description of the ``syslog``
14 This module wraps the system ``syslog`` family of routines. A pure Python
15 library that can speak to a syslog server is available in the
21 .. function:: syslog(message)
22 syslog(priority, message)
31 If :func:`openlog` has not been called prior to the call to :func:`syslog`,
[all …]
/external/python/cpython2/Doc/library/
Dsyslog.rst1 :mod:`syslog` --- Unix syslog library routines
4 .. module:: syslog
6 :synopsis: An interface to the Unix syslog library routines.
9 This module provides an interface to the Unix ``syslog`` library routines.
10 Refer to the Unix manual pages for a detailed description of the ``syslog``
13 This module wraps the system ``syslog`` family of routines. A pure Python
14 library that can speak to a syslog server is available in the
20 .. function:: syslog(message)
21 syslog(priority, message)
30 If :func:`openlog` has not been called prior to the call to :func:`syslog`,
[all …]
/external/adhd/cras/src/server/
Dcras_alsa_helpers.c253 syslog(LOG_ERR, "Fail to get avail frames: %s", in cras_alsa_resume_appl_ptr()
262 syslog(LOG_ERR, "Fail to get buffer size: %s", in cras_alsa_resume_appl_ptr()
277 syslog(LOG_ERR, "Fail to resume appl_ptr: %s", in cras_alsa_resume_appl_ptr()
295 syslog(LOG_WARNING, "No chmap queried! Skip chmap set"); in cras_alsa_set_channel_map()
301 syslog(LOG_ERR, "Unable to find the best channel map"); in cras_alsa_set_channel_map()
317 syslog(LOG_ERR, "Unable to set channel map"); in cras_alsa_set_channel_map()
339 syslog(LOG_ERR, "Unable to find the best channel map"); in cras_alsa_get_channel_map()
375 syslog(LOG_ERR, "snd_pcm_hw_params_any: %s", snd_strerror(rc)); in cras_alsa_fill_properties()
403 syslog(LOG_WARNING, "No valid sample rates."); in cras_alsa_fill_properties()
420 syslog(LOG_WARNING, "No valid channel counts found."); in cras_alsa_fill_properties()
[all …]
Dcras_bt_manager.c46 syslog(LOG_INFO, "Bluetooth Adapter: %s added", in cras_bt_interface_added()
49 syslog(LOG_WARNING, in cras_bt_interface_added()
63 syslog(LOG_INFO, in cras_bt_interface_added()
67 syslog(LOG_WARNING, in cras_bt_interface_added()
75 syslog(LOG_INFO, "Bluetooth Profile Manager added"); in cras_bt_interface_added()
90 syslog(LOG_INFO, "Bluetooth Device: %s added", in cras_bt_interface_added()
93 syslog(LOG_WARNING, in cras_bt_interface_added()
113 syslog(LOG_INFO, in cras_bt_interface_added()
118 syslog(LOG_WARNING, in cras_bt_interface_added()
129 syslog(LOG_INFO, in cras_bt_interface_added()
[all …]
Dcras_alsa_card.c96 syslog(LOG_DEBUG, in create_iodev_for_device()
121 syslog(LOG_ERR, "Couldn't create alsa_iodev for %s", pcm_name); in create_iodev_for_device()
126 syslog(LOG_DEBUG, "New %s device %s", in create_iodev_for_device()
187 syslog(LOG_ERR, "Invalid card from control event."); in alsa_control_event_pending()
241 syslog(LOG_ERR, "Fail adding controls to mixer for %s.", in add_controls_and_iodevs_by_matching()
314 syslog(LOG_ERR, in add_controls_and_iodevs_with_ucm()
325 syslog(LOG_ERR, in add_controls_and_iodevs_with_ucm()
338 syslog(LOG_ERR, in add_controls_and_iodevs_with_ucm()
362 syslog(LOG_ERR, "Unexpected direction: %d", in add_controls_and_iodevs_with_ucm()
369 syslog(LOG_ERR, "Could not get info for device: %s", in add_controls_and_iodevs_with_ucm()
[all …]
Dcras_alsa_mixer.c104 syslog(LOG_ERR, "snd_mixer_open: %d: %s", rc, strerror(-rc)); in alsa_mixer_open()
109 syslog(LOG_ERR, "snd_mixer_attach: %d: %s", rc, strerror(-rc)); in alsa_mixer_open()
114 syslog(LOG_ERR, "snd_mixer_selem_register: %d: %s", rc, in alsa_mixer_open()
120 syslog(LOG_ERR, "snd_mixer_load: %d: %s", rc, strerror(-rc)); in alsa_mixer_open()
142 syslog(LOG_ERR, "No memory for mixer_control_elem."); in mixer_control_element_create()
228 syslog(LOG_WARNING, in mixer_control_add_element()
255 syslog(LOG_ERR, "No memory for mixer_control: %s", name); in mixer_control_create()
267 syslog(LOG_ERR, "Control does not have a name."); in mixer_control_create()
274 syslog(LOG_ERR, "No memory for control's name: %s", name); in mixer_control_create()
341 syslog(LOG_ERR, "Unable to find simple control %s, 0", in mixer_control_create_by_name()
[all …]
Dcras_bt_device.c197 syslog(LOG_ERR, "Connect profile message replied error: %s", in on_connect_profile_reply()
211 syslog(LOG_ERR, "Disconnect message replied error"); in on_disconnect_reply()
241 syslog(LOG_ERR, "Failed to send Disconnect message"); in cras_bt_device_connect_profile()
275 syslog(LOG_ERR, "Failed to send Disconnect message"); in cras_bt_device_disconnect()
315 syslog(LOG_ERR, "Removing dev with connected profiles %u", in cras_bt_device_remove()
329 syslog(LOG_INFO, "Bluetooth Device: %s removed", in cras_bt_device_reset()
460 syslog(LOG_ERR, "Fail to fallback to profile %u", in cras_bt_device_rm_iodev()
554 syslog(LOG_DEBUG, "Bluetooth Device: %s is HFP handsfree", in cras_bt_device_log_profile()
558 syslog(LOG_DEBUG, "Bluetooth Device: %s is HFP audio gateway", in cras_bt_device_log_profile()
562 syslog(LOG_DEBUG, "Bluetooth Device: %s is A2DP source", in cras_bt_device_log_profile()
[all …]
Dcras_rclient_util.c58 syslog(LOG_ERR, "Message %d should not have %u fds attached.", msg->id, in rclient_validate_message_fds()
68 syslog(LOG_ERR, in rclient_validate_stream_connect_message()
77 syslog(LOG_ERR, in rclient_validate_stream_connect_message()
85 syslog(LOG_ERR, in rclient_validate_stream_connect_message()
98 syslog(LOG_ERR, "Invalid audio fd in stream connect.\n"); in rclient_validate_stream_connect_fds()
104 syslog(LOG_ERR, in rclient_validate_stream_connect_fds()
108 syslog(LOG_ERR, in rclient_validate_stream_connect_fds()
176 syslog(LOG_DEBUG, "Send connected for stream %x\n", msg->stream_id); in rclient_handle_client_stream_connect()
181 syslog(LOG_ERR, in rclient_handle_client_stream_connect()
207 syslog(LOG_ERR, "Failed to send connected messaged\n"); in rclient_handle_client_stream_connect()
[all …]
Dcras_device_monitor.c44 syslog(LOG_ERR, "Failed to send device message %d", in cras_device_monitor_reset_device()
59 syslog(LOG_ERR, "Failed to send device message %d", in cras_device_monitor_set_device_mute_state()
74 syslog(LOG_ERR, "Failed to send device message %d", in cras_device_monitor_error_close()
95 syslog(LOG_ERR, "trying to recover device 0x%x by resetting it", in handle_device_message()
104 syslog(LOG_ERR, "Close erroneous device in main thread"); in handle_device_message()
108 syslog(LOG_ERR, "Unknown device message type %u", in handle_device_message()
Dcras_a2dp_endpoint.c74 syslog(LOG_WARNING, "No supported channel modes."); in cras_a2dp_select_configuration()
87 syslog(LOG_WARNING, "No supported sampling frequencies."); in cras_a2dp_select_configuration()
96 syslog(LOG_WARNING, "No supported allocation method."); in cras_a2dp_select_configuration()
105 syslog(LOG_WARNING, "No supported subbands."); in cras_a2dp_select_configuration()
118 syslog(LOG_WARNING, "No supported block length."); in cras_a2dp_select_configuration()
193 syslog(LOG_ERR, "Device and active transport not match."); in cras_a2dp_start()
198 syslog(LOG_WARNING, in cras_a2dp_start()
207 syslog(LOG_WARNING, "Failed to create a2dp iodev"); in cras_a2dp_start()
221 syslog(LOG_INFO, "Destroying iodev for A2DP device"); in cras_a2dp_suspend_connected_device()
Dcras_rstream.c118 syslog(LOG_ERR, "rstream: stream_out can't be NULL\n"); in verify_rstream_parameters()
122 syslog(LOG_ERR, "rstream: format can't be NULL\n"); in verify_rstream_parameters()
126 syslog(LOG_ERR, "rstream: invalid frame_rate %zu\n", in verify_rstream_parameters()
136 syslog(LOG_ERR, "rstream: invalid buffer_frames %zu\n", in verify_rstream_parameters()
143 syslog(LOG_ERR, "rstream: invalid cb_threshold %zu\n", in verify_rstream_parameters()
148 syslog(LOG_ERR, "rstream: invalid num_channels %zu\n", in verify_rstream_parameters()
156 syslog(LOG_ERR, "rstream: format %d not supported\n", in verify_rstream_parameters()
162 syslog(LOG_ERR, "rstream: Invalid direction.\n"); in verify_rstream_parameters()
167 syslog(LOG_ERR, "rstream: Invalid stream type.\n"); in verify_rstream_parameters()
172 syslog(LOG_ERR, "rstream: Invalid client type.\n"); in verify_rstream_parameters()
[all …]
Dcras_bt_endpoint.c75 syslog(LOG_DEBUG, "SetConfiguration: %s", in cras_bt_endpoint_set_configuration()
84 syslog(LOG_WARNING, "Bad SetConfiguration message received."); in cras_bt_endpoint_set_configuration()
104 syslog(LOG_INFO, "Bluetooth Transport: %s added", in cras_bt_endpoint_set_configuration()
110 syslog(LOG_ERR, "Do device found for transport %s", in cras_bt_endpoint_set_configuration()
141 syslog(LOG_DEBUG, "SelectConfiguration: %s", in cras_bt_endpoint_select_configuration()
154 syslog(LOG_WARNING, "Bad SelectConfiguration method call: %s", in cras_bt_endpoint_select_configuration()
198 syslog(LOG_DEBUG, "ClearConfiguration: %s", in cras_bt_endpoint_clear_configuration()
210 syslog(LOG_WARNING, "Bad ClearConfiguration method call: %s", in cras_bt_endpoint_clear_configuration()
238 syslog(LOG_DEBUG, "Release: %s", dbus_message_get_path(message)); in cras_bt_endpoint_release()
261 syslog(LOG_DEBUG, "Endpoint message: %s %s %s", in cras_bt_handle_endpoint_message()
[all …]
Dcras_server_metrics.c348 syslog(LOG_ERR, "The invalid device has been used."); in get_metrics_device_type()
502 syslog(LOG_ERR, "Failed to send metrics message: " in cras_server_metrics_hfp_sco_connection_error()
521 syslog(LOG_ERR, "Failed to send metrics message: " in cras_server_metrics_hfp_battery_indicator()
540 syslog(LOG_ERR, "Failed to send metrics message: " in cras_server_metrics_hfp_battery_report()
561 syslog(LOG_ERR, in cras_server_metrics_hfp_packet_loss()
580 syslog(LOG_ERR, in cras_server_metrics_hfp_wideband_support()
599 syslog(LOG_ERR, "Failed to send metrics message: " in cras_server_metrics_hfp_wideband_selected_codec()
623 syslog(LOG_ERR, in cras_server_metrics_device_runtime()
649 syslog(LOG_ERR, "Failed to send metrics message: DEVICE_GAIN"); in cras_server_metrics_device_gain()
673 syslog(LOG_ERR, in cras_server_metrics_device_volume()
[all …]
/external/selinux/mcstrans/src/
Dmcstransd.c106 syslog(LOG_ERR, "Failed to write response header"); in send_response()
115 syslog(LOG_ERR, "Failed to write response data"); in send_response()
132 syslog(LOG_ERR, "Failed to get PID of client process"); in get_peer_pid()
173 syslog(LOG_ERR, "Invalid request func=%d from=%u", in process_request()
270 syslog(LOG_ERR, "realloc failed for %d fds", *nfds+1); in add_pollfd()
316 syslog(LOG_ERR, "accept() failed: %m"); in process_events()
321 syslog(LOG_ERR, in process_events()
330 syslog(LOG_ERR, in process_events()
355 syslog(LOG_ERR, "Unknown/error events (%x) encountered" in process_events()
383 syslog(LOG_ERR, "Failed to allocate a pollfd"); in process_connections()
[all …]
/external/autotest/client/tools/
Dcrash_handler.py21 import syslog
134 syslog.syslog("Could not determine from which application core file %s "
191 syslog.syslog("Writing core files to %s" % dir_list)
200 syslog.openlog('AutotestCrashHandler', 0, syslog.LOG_DAEMON)
211 syslog.syslog("Unable to unpack parameters passed to the "
230 syslog.syslog("Application %s, PID %s crashed" % (exe, crashed_pid))
234 syslog.syslog("Crash handler had a problem: %s" % e)
/external/libcups/scheduler/
Dcups-lpd.c136 syslog(LOG_WARNING, "Expected hostname string after -h option!"); in main()
151 syslog(LOG_WARNING, "Expected option string after -o option!"); in main()
160 syslog(LOG_WARNING, "Unknown option \"%c\" ignored!", argv[i][1]); in main()
165 syslog(LOG_WARNING, "Unknown command-line option \"%s\" ignored!", in main()
176 syslog(LOG_WARNING, "Unable to get client address - %s", strerror(errno)); in main()
195 syslog(LOG_INFO, "Connection from %s (%s %s)", hostname, hostfamily, in main()
213 syslog(LOG_ERR, "Unable to get command line from client!"); in main()
250 syslog(LOG_ERR, "Unknown LPD command 0x%02X!", command); in main()
251 syslog(LOG_ERR, "Command line = %s", line + 1); in main()
258 syslog(LOG_INFO, "Print waiting jobs (no-op)"); in main()
[all …]
/external/iputils/
Drarpd.c97 syslog(LOG_ERR, "socket: %m"); in load_if()
105 syslog(LOG_ERR, "SIOCGIFCONF: %m"); in load_if()
131 syslog(LOG_ERR, "ioctl(SIOCGIFNAME): %m"); in load_if()
144 syslog(LOG_ERR, "ioctl(SIOCGIFHWADDR): %m"); in load_if()
162 syslog(LOG_INFO, "link %s", ifl->name); in load_if()
165 syslog(LOG_ERR, "ioctl(SIOCGIFMASK): %m"); in load_if()
170 syslog(LOG_ERR, "ioctl(SIOCGIFDSTADDR): %m"); in load_if()
200 syslog(LOG_INFO, " addr %s/%d on %s\n", in load_if()
205 syslog(LOG_INFO, " addr %s %s/%d on %s\n", tmpa, in load_if()
228 syslog(LOG_ERR, "opendir: %m"); in bootable()
[all …]
Dtftpd.c124 syslog(LOG_ERR, "ioctl(FIONBIO): %m\n"); in main()
132 syslog(LOG_ERR, "recvfrom: %m\n"); in main()
180 syslog(LOG_ERR, "fork: %m\n"); in main()
191 syslog(LOG_ERR, "socket: %m\n"); in main()
195 syslog(LOG_ERR, "connect: %m\n"); in main()
291 syslog(LOG_ERR, "bad path %s", filename); in validate_access()
300 syslog(LOG_ERR, "no dirs"); in validate_access()
307 syslog(LOG_ERR, "stat %s : %m", filename); in validate_access()
312 syslog(LOG_ERR, "not readable %s", filename); in validate_access()
317 syslog(LOG_ERR, "not writable %s", filename); in validate_access()
[all …]
/external/mdnsresponder/mDNSShared/
Ddnssd_clientstub.c62 static void syslog( int priority, const char * message, ...) in syslog() function
176syslog(LOG_WARNING, "dnssd_clientstub write_all: SO_ISDEFUNCT failed %d %s", dnssd_errno, dnssd_st… in write_all()
178 syslog(LOG_WARNING, "dnssd_clientstub write_all(%d) failed %ld/%ld %d %s", sd, in write_all()
183 syslog(LOG_INFO, "dnssd_clientstub write_all(%d) DEFUNCT", sd); in write_all()
185 syslog(LOG_WARNING, "dnssd_clientstub write_all(%d) failed %ld/%ld %d %s", sd, in write_all()
211 …if ((num_read < 0) && (errno == EINTR)) { syslog(LOG_INFO, "dnssd_clientstub read_all: EINTR conti… in read_all()
228syslog(LOG_WARNING, "dnssd_clientstub read_all: SO_ISDEFUNCT failed %d %s", dnssd_errno, dnssd_str… in read_all()
234 syslog(LOG_WARNING, "dnssd_clientstub read_all(%d) failed %ld/%ld %d %s", sd, in read_all()
239 syslog(LOG_INFO, "dnssd_clientstub read_all(%d) DEFUNCT", sd); in read_all()
270 if (fs == NULL) { syslog(LOG_WARNING, "dnssd_clientstub more_bytes: malloc failed"); return 0; } in more_bytes()
[all …]
/external/autotest/client/site_tests/platform_LogDupSuppression/
Dplatform_LogDupSuppression.py5 import syslog
25 syslog.openlog('spam')
35 syslog.syslog(self.SPAM_MSG)
36 syslog.syslog(self.NON_SPAM_MSG)
/external/adhd/cras/src/common/
Dcras_shm.c104 syslog(LOG_ERR, in cras_audio_shm_create()
133 syslog(LOG_ERR, "cras_shm: mmap failed to map shm for header."); in cras_audio_shm_create()
141 syslog(LOG_ERR, in cras_audio_shm_create()
182 syslog(LOG_WARNING, in cras_shm_restorecon()
190 syslog(LOG_WARNING, "Couldn't run realpath() for %s: %s", in cras_shm_restorecon()
196 syslog(LOG_WARNING, "Restorecon on %s failed: %s", fd_proc_path, in cras_shm_restorecon()
216 syslog(LOG_ERR, "failed to ashmem_create_region %s: %s\n", name, in cras_shm_open_rw()
228 syslog(LOG_ERR, "failed to ashmem_set_prot_region %s: %s\n", in cras_shm_reopen_ro()
249 syslog(LOG_ERR, "failed to shm_open %s: %s\n", name, in cras_shm_open_rw()
256 syslog(LOG_ERR, "failed to set size of shm %s: %s\n", name, in cras_shm_open_rw()
[all …]
/external/mdnsresponder/mDNSPosix/
Dnss_mdns.c669 syslog (LOG_DEBUG, in _nss_mdns_gethostbyname_r()
693 syslog (LOG_DEBUG, in _nss_mdns_gethostbyname2_r()
729 syslog (LOG_WARNING, in _nss_mdns_gethostbyaddr_r()
744 syslog (LOG_DEBUG, in _nss_mdns_gethostbyaddr_r()
811 syslog (LOG_DEBUG, in mdns_gethostbyname2()
858 syslog (LOG_DEBUG, in mdns_lookup_name()
878 syslog (LOG_WARNING, in mdns_lookup_name()
900 syslog (LOG_WARNING, in mdns_lookup_name()
945 syslog (LOG_DEBUG, in mdns_lookup_addr()
975 syslog (LOG_WARNING, in mdns_lookup_addr()
[all …]
/external/vboot_reference/utility/
Dtpm_init_temp_fix.c43 syslog(pri, "TPM selftest failed with code 0x%x\n", result); in main()
51 syslog(pri, "TPM assertpp failed with code 0x%x\n", result); in main()
57 syslog(pri, "TPM getflags failed with code 0x%x\n", result); in main()
64 syslog(pri, "TPM physical enable failed with code 0x%x\n", result); in main()
72 syslog(pri, "TPM physical activate failed with code 0x%x\n", result); in main()

12345678910>>...17