Michal Schmidt
0a1beeb642
treewide: auto-convert the simple cases to log_*_errno()
...
As a followup to 086891e5c1 "log: add an "error" parameter to all
low-level logging calls and intrdouce log_error_errno() as log calls
that take error numbers", use sed to convert the simple cases to use
the new macros:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\("(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_\1_errno(-\4, "\2%m"\3);/'
Multi-line log_*() invocations are not covered.
And we also should add log_unit_*_errno().
2014-11-28 12:04:41 +01:00
..
2014-10-23 17:38:02 +02:00
2014-11-06 14:21:10 +01:00
2014-08-18 18:43:48 +02:00
2014-10-03 04:04:42 +02:00
2014-11-28 12:04:41 +01:00
2014-10-27 18:09:26 +01:00
2014-06-22 00:36:19 +02:00
2014-10-04 23:55:35 +02:00
2014-08-30 17:41:32 -04:00
2014-10-04 23:55:35 +02:00
2014-11-06 14:21:11 +01:00
2014-06-20 00:10:47 -04:00
2014-11-07 01:19:56 +01:00
2014-08-21 17:24:21 +02:00
2014-09-30 23:40:40 +02:00
2013-10-06 18:29:12 -04:00
2013-10-13 17:56:54 -04:00
2014-10-31 11:32:00 -04:00
2013-02-11 22:22:40 +01:00
2014-11-13 10:39:51 +01:00
2014-08-18 18:43:52 +02:00
2014-11-07 01:19:56 +01:00
2014-11-05 16:54:22 +01:00
2014-10-23 17:38:02 +02:00
2014-02-21 03:50:12 +01:00
2014-11-27 22:05:23 +01:00
2014-07-31 08:56:03 -04:00
2014-10-04 23:55:35 +02:00
2014-03-14 01:49:44 +01:00
2014-10-04 23:55:35 +02:00
2014-11-13 13:12:57 +01:00
2013-10-14 06:11:19 +02:00
2014-10-31 10:57:21 +01:00
2014-05-15 15:29:58 +02:00
2014-03-24 03:22:44 +01:00
2014-11-28 12:04:41 +01:00
2014-11-22 18:01:43 -05:00
2014-11-13 10:39:51 +01:00
2014-09-15 16:08:50 +02:00
2014-07-17 20:23:53 +02:00
2014-06-24 02:40:50 +02:00
2012-11-14 22:21:16 +01:00
2014-07-11 16:43:53 +02:00
2014-04-03 18:09:24 +02:00
2014-10-12 17:31:02 -04:00
2014-10-04 23:55:35 +02:00
2013-09-17 16:44:38 -04:00
2014-11-28 12:04:41 +01:00
2014-10-04 23:55:35 +02:00
2012-12-23 11:28:14 +01:00
2014-11-10 23:45:12 +01:00
2014-10-04 23:55:35 +02:00
2014-11-06 14:21:11 +01:00
2014-09-29 11:09:39 -04:00
2014-10-04 23:55:35 +02:00
2014-11-13 20:35:06 +01:00
2014-09-14 22:47:21 +02:00
2014-11-05 16:54:22 +01:00
2014-11-23 16:29:11 -05:00
2014-11-20 00:01:05 +01:00
2014-02-08 13:07:39 -05:00
2014-11-27 00:24:52 -05:00
2014-11-28 12:04:41 +01:00
2014-06-06 19:41:24 +02:00