1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 10:51:20 +03:00
systemd/src/test
Michal Schmidt 56f64d9576 treewide: use log_*_errno whenever %m is in the format string
If the format string contains %m, clearly errno must have a meaningful
value, so we might as well use log_*_errno to have ERRNO= logged.

Using:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/'

Plus some whitespace, linewrap, and indent adjustments.
2014-11-28 19:49:27 +01:00
..
.gitignore test: generate tests for OrderedHashmap from Hashmap tests 2014-10-23 17:38:02 +02:00
Makefile
test-architecture.c condition: properly allow passing back errors from condition checks 2014-11-06 14:21:10 +01:00
test-async.c tests: add missing unlink 2014-08-18 18:43:48 +02:00
test-barrier.c test-barrier: add checks after the barrier constructor 2014-10-03 04:04:42 +02:00
test-boot-timestamps.c treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
test-calendarspec.c calendarspec: parse 'quarterly' and 'semi-annually' as shortcuts 2014-10-27 18:09:26 +01:00
test-capability.c treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
test-cgroup-mask.c test: only use assert_se 2014-10-04 23:55:35 +02:00
test-cgroup-util.c cgroup-util: shorten cg_path_get_session 2014-08-30 17:41:32 -04:00
test-cgroup.c test: only use assert_se 2014-10-04 23:55:35 +02:00
test-condition.c shared: rename condition-util.[ch] to condition.[ch] 2014-11-06 14:21:11 +01:00
test-conf-files.c test: ensure conf_files_list returns absolute paths 2014-06-20 00:10:47 -04:00
test-copy.c copy: teach copy_bytes() sendfile() support, and then replace sendfile_full() by it 2014-11-07 01:19:56 +01:00
test-daemon.c core: allow informing systemd about service status changes with RELOADING=1 and STOPPING=1 sd_notify() messages 2014-08-21 17:24:21 +02:00
test-date.c test-date: don't fail test if log_max_level is higher than LOG_INFO 2014-09-30 23:40:40 +02:00
test-device-nodes.c
test-ellipsize.c
test-engine.c Make bus errno mappings non-static 2014-10-31 11:32:00 -04:00
test-env-replace.c
test-execute.c tests: add test-execute 2014-11-13 10:39:51 +01:00
test-fdset.c tests: add test for fdset_iterate 2014-08-18 18:43:52 +02:00
test-fileio.c copy: teach copy_bytes() sendfile() support, and then replace sendfile_full() by it 2014-11-07 01:19:56 +01:00
test-hashmap-plain.c test: hashmap-plain - make coverity happy 2014-11-05 16:54:22 +01:00
test-hashmap.c test: generate tests for OrderedHashmap from Hashmap tests 2014-10-23 17:38:02 +02:00
test-helper.h replace tabs with spaces in some files 2014-02-21 03:50:12 +01:00
test-hostname.c treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
test-id128.c Always prefer our headers to system headers 2014-07-31 08:56:03 -04:00
test-install.c test: only use assert_se 2014-10-04 23:55:35 +02:00
test-ipcrm.c logind: automatically remove SysV + POSIX IPC objects when the users owning them fully log out 2014-03-14 01:49:44 +01:00
test-job-type.c test: only use assert_se 2014-10-04 23:55:35 +02:00
test-libudev.c udev: switch to systemd logging functions 2014-11-13 13:12:57 +01:00
test-list.c
test-locale-util.c tests: add test-locale-util 2014-10-31 10:57:21 +01:00
test-log.c Remove unnecessary casts in printfs 2014-05-15 15:29:58 +02:00
test-loopback.c
test-namespace.c util: replace close_pipe() with new safe_close_pair() 2014-03-24 03:22:44 +01:00
test-ns.c treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
test-path-util.c Do not check for existence of remote binaries 2014-11-22 18:01:43 -05:00
test-path.c manager: allow test run to catch SIGCHLD events 2014-11-13 10:39:51 +01:00
test-prioq.c hashmap: introduce hash_ops to make struct Hashmap smaller 2014-09-15 16:08:50 +02:00
test-pty.c test-pty: silence a warning 2014-07-17 20:23:53 +02:00
test-ratelimit.c tests: add test-ratelimit 2014-06-24 02:40:50 +02:00
test-replace-var.c
test-ring.c shared: fix coding-style for ring-buffer implementation 2014-07-11 16:43:53 +02:00
test-rtnl-manual.c sd-rtnl: fix broken test cases and add support for tunnel 2014-04-03 18:09:24 +02:00
test-sched-prio.c tests: fix some tests to pass in koji 2014-10-12 17:31:02 -04:00
test-set.c test: only use assert_se 2014-10-04 23:55:35 +02:00
test-sleep.c
test-socket-util.c treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
test-strbuf.c test: only use assert_se 2014-10-04 23:55:35 +02:00
test-strip-tab-ansi.c
test-strv.c strv: rework strv_split_quoted() to use unquote_first_word() 2014-11-10 23:45:12 +01:00
test-strxcpyx.c test: only use assert_se 2014-10-04 23:55:35 +02:00
test-tables.c shared: rename condition-util.[ch] to condition.[ch] 2014-11-06 14:21:11 +01:00
test-time.c Do not format USEC_INFINITY as NULL 2014-09-29 11:09:39 -04:00
test-tmpfiles.c test: only use assert_se 2014-10-04 23:55:35 +02:00
test-udev.c udev: support ENV{}=="" global property matches 2014-11-13 20:35:06 +01:00
test-uid-range.c test: fix test of uid-range 2014-09-14 22:47:21 +02:00
test-unaligned.c shared: unaligned - use void* instead of unaligned be16_t* 2014-11-05 16:54:22 +01:00
test-unit-file.c test: support empty environment variables in unit files 2014-11-23 16:29:11 -05:00
test-unit-name.c tests: fix minor memory leak 2014-11-20 00:01:05 +01:00
test-utf8.c core: do not print invalid utf-8 in error messages 2014-02-08 13:07:39 -05:00
test-util.c util: add function getting proc environ 2014-11-27 00:24:52 -05:00
test-watchdog.c treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
test-xml.c bus: add basic dbus1 policy parser 2014-06-06 19:41:24 +02:00