forked from pool/systemd
fb793851c7
- Add patch shut-up-annoying-assertion-monotonic-clock-message.patch to avoid annyoing messages on failing dual_timestamp_is_set in the kernel's message ring buffer - Update udev-generate-peristent-rule.sh from latest git - Modify and extend patch 0001-On_s390_con3270_disable_ANSI_colour_esc.patch to avoid also ANSI escape sequences for busy jobs on s390 - Add or port upstram bugfix patches: 0001-bash-completion-fix-__get_startable_units.patch 0002-sysctl-replaces-some-slashes-with-dots.patch 0003-delta-do-not-use-unicode-chars-in-C-locale.patch 0004-implement-a-union-to-pad-out-file_handle.patch - Add patch respect-nfs-bg-option.patch from Thomas Blume: System fails to boot if nfs mounts get added to fstab (bnc#874665) - Do not use runtime PM for some IBM consoles (bnc#868931) 1013-no-runtime-PM-for-IBM-consoles.patch - Add patch shut-up-annoying-assertion-monotonic-clock-message.patch to avoid annyoing messages on failing dual_timestamp_is_set in the kernel's message ring buffer - Update udev-generate-peristent-rule.sh from latest git - Modify and extend patch 0001-On_s390_con3270_disable_ANSI_colour_esc.patch to avoid also ANSI escape sequences for busy jobs on s390 OBS-URL: https://build.opensuse.org/request/show/232406 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=183
39 lines
1.5 KiB
Diff
39 lines
1.5 KiB
Diff
Stop flooding the kernel's message ring buffer with useless
|
|
messages on dual_timestamp_is_set is failed. This is a backport
|
|
from upstream code.
|
|
|
|
---
|
|
src/libsystemd/sd-event/sd-event.c | 10 ++++++++--
|
|
1 file changed, 8 insertions(+), 2 deletions(-)
|
|
|
|
--- systemd-210/src/libsystemd/sd-event/sd-event.c
|
|
+++ systemd-210/src/libsystemd/sd-event/sd-event.c 2014-05-02 10:01:23.366235185 +0000
|
|
@@ -2191,9 +2191,12 @@ _public_ int sd_event_exit(sd_event *e,
|
|
_public_ int sd_event_get_now_realtime(sd_event *e, uint64_t *usec) {
|
|
assert_return(e, -EINVAL);
|
|
assert_return(usec, -EINVAL);
|
|
- assert_return(dual_timestamp_is_set(&e->timestamp), -ENODATA);
|
|
assert_return(!event_pid_changed(e), -ECHILD);
|
|
|
|
+ /* If we haven't run yet, just get the actual time */
|
|
+ if (!dual_timestamp_is_set(&e->timestamp))
|
|
+ return -ENODATA;
|
|
+
|
|
*usec = e->timestamp.realtime;
|
|
return 0;
|
|
}
|
|
@@ -2201,9 +2204,12 @@ _public_ int sd_event_get_now_realtime(s
|
|
_public_ int sd_event_get_now_monotonic(sd_event *e, uint64_t *usec) {
|
|
assert_return(e, -EINVAL);
|
|
assert_return(usec, -EINVAL);
|
|
- assert_return(dual_timestamp_is_set(&e->timestamp), -ENODATA);
|
|
assert_return(!event_pid_changed(e), -ECHILD);
|
|
|
|
+ /* If we haven't run yet, just get the actual time */
|
|
+ if (!dual_timestamp_is_set(&e->timestamp))
|
|
+ return -ENODATA;
|
|
+
|
|
*usec = e->timestamp.monotonic;
|
|
return 0;
|
|
}
|