projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19cdcd5
)
basic/log: change error for unset errno to ESTRPIPE
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 19 Apr 2021 06:43:36 +0000
(08:43 +0200)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 19 Apr 2021 06:46:19 +0000
(08:46 +0200)
EIO is used in other contexts, so change ot something otherwise unused.
ENOTRECOVERABLE was also suggested, but it's used in various other places
in the code.
https://github.com/systemd/systemd/pull/19317#discussion_r614887661
src/basic/log.h
patch
|
blob
|
history
diff --git
a/src/basic/log.h
b/src/basic/log.h
index 81330166a452bdec90a2f62faacda00f2215c801..51ba3d8fde788e99b759c2b50d3e1adeda87551c 100644
(file)
--- a/
src/basic/log.h
+++ b/
src/basic/log.h
@@
-195,7
+195,7
@@
void log_assert_failed_return(
_e = (log_get_max_level() >= LOG_PRI(_level)) \
? log_internal(_level, _e, PROJECT_FILE, __LINE__, __func__, __VA_ARGS__) \
: -ERRNO_VALUE(_e); \
- _e < 0 ? _e : -E
IO;
\
+ _e < 0 ? _e : -E
STRPIPE;
\
})
#if BUILD_MODE_DEVELOPER && !defined(TEST_CODE)