1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 02:21:44 +03:00

udevadm: assert return value

This mirrors what we do in now().
CID #1351755.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2016-04-08 21:08:21 -04:00
parent 045e00cf16
commit b3b90a25f3

View File

@ -40,7 +40,7 @@ static void sig_handler(int signum) {
static void print_device(struct udev_device *device, const char *source, int prop) {
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
assert_se(clock_gettime(CLOCK_MONOTONIC, &ts) == 0);
printf("%-6s[%"PRI_TIME".%06ld] %-8s %s (%s)\n",
source,
ts.tv_sec, ts.tv_nsec/1000,