chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
c33b329
)
treewide: more log_*_errno() conversions, multiline calls
author
Michal Schmidt
<mschmidt@redhat.com>
Fri, 28 Nov 2014 16:09:20 +0000
(17:09 +0100)
committer
Michal Schmidt
<mschmidt@redhat.com>
Fri, 28 Nov 2014 16:17:51 +0000
(17:17 +0100)
Basically:
find . -name '*.[ch]' | while read f; do perl -i.mmm -e \
'local $/;
local $_=<>;
s/log_(debug|info|notice|warning|error|emergency)\("([^"]*)%s"([^;]*),\s*strerror\(-?([->a-zA-Z_]+)\)\);/log_\1_errno(\4, "\2%m"\3);/gms;print;' \
$f; done
Plus manual indentation fixups.
No differences found