forked from systemd/casync
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git grep -l -E '%s\\n", strerror'|xargs sed -i 's/%s\\n"\(.*\), strerror([^)]*)/%m"\1/' parallel spatch --in-place --sp-file coccinelle/fprintf.cocci ::: $(git ls-files '*.[ch]') git grep -e 'log_error.*\\n' -l|xargs sed -i -r 's/(log_error.*) "\\n\"/\1/; s/(log_error.*)\\n/\1/;' + manual fixups
- Loading branch information
Showing
13 changed files
with
614 additions
and
973 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* SPDX-License-Identifier: LGPL-2.1+ */ | ||
|
||
@@ | ||
expression e; | ||
local idexpression r; | ||
expression list s; | ||
@@ | ||
- if (e) { | ||
- fprintf(stderr, s); | ||
- return r; | ||
- } | ||
+ if (e) | ||
+ return log_error_errno(r, s); | ||
@@ | ||
expression list s; | ||
@@ | ||
- fprintf(stderr, s); | ||
+ log_error(s); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.