projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56c761f
)
shutdown: propagate one more error from sync_making_progress()
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Fri, 22 Nov 2024 21:40:22 +0000
(06:40 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sat, 23 Nov 2024 08:32:51 +0000
(17:32 +0900)
No functional change, just refactoring, as anyway all errors will be
ignored by the caller.
src/shutdown/shutdown.c
patch
|
blob
|
history
diff --git
a/src/shutdown/shutdown.c
b/src/shutdown/shutdown.c
index 57bb9a82d01c78ce201dc6fd7f832c74e3f642a3..e26a8579c597a91f3f5e22765932b15b7c9239b6 100644
(file)
--- a/
src/shutdown/shutdown.c
+++ b/
src/shutdown/shutdown.c
@@
-211,10
+211,8
@@
static int sync_making_progress(unsigned long long *prev_dirty) {
continue;
errno = 0;
- if (sscanf(line, "%*s %llu %*s", &ull) != 1) {
- log_warning_errno(errno_or_else(EIO), "Failed to parse /proc/meminfo field, ignoring: %m");
- return false;
- }
+ if (sscanf(line, "%*s %llu %*s", &ull) != 1)
+ return log_warning_errno(errno_or_else(EIO), "Failed to parse /proc/meminfo field: %m");
val += ull;
}