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:
parent
045e00cf16
commit
b3b90a25f3
@ -40,7 +40,7 @@ static void sig_handler(int signum) {
|
|||||||
static void print_device(struct udev_device *device, const char *source, int prop) {
|
static void print_device(struct udev_device *device, const char *source, int prop) {
|
||||||
struct timespec ts;
|
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",
|
printf("%-6s[%"PRI_TIME".%06ld] %-8s %s (%s)\n",
|
||||||
source,
|
source,
|
||||||
ts.tv_sec, ts.tv_nsec/1000,
|
ts.tv_sec, ts.tv_nsec/1000,
|
||||||
|
Loading…
Reference in New Issue
Block a user