summaryrefslogtreecommitdiff
path: root/coccinelle/errno.cocci
AgeCommit message (Collapse)Author
2015-11-09coccinelle: additional errno.cocci hunkMichal Schmidt
rewrites: log_error_errno(errno, ...); return -errno; into: return log_error_errno(errno, ...);
2015-11-09coccinelle: errno.cocci improvementsMichal Schmidt
Apply to all log_*_errno loglevels.
2015-09-09tree-wide: make use of log_error_errno() return value in more casesLennart Poettering
The previous coccinelle semantic patch that improved usage of log_error_errno()'s return value, only looked for log_error_errno() invocations with a single parameter after the error parameter. Update the patch to handle arbitrary numbers of additional arguments.
2015-09-09tree-wide: make use of log_error_errno() return valueLennart Poettering
Turns this: r = -errno; log_error_errno(errno, "foo"); into this: r = log_error_errno(errno, "foo"); and this: r = log_error_errno(errno, "foo"); return r; into this: return log_error_errno(errno, "foo");