summaryrefslogtreecommitdiff
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-06-02 16:52:07 +0200
committerTom Gundersen <teg@jklm.no>2015-06-02 18:12:47 +0200
commit3b64e4d4f40baac56148c7d333d6a0053358ec7a (patch)
tree770d251059fd20ee9a4ed7510f639a716367c7b0 /src/udev/udevd.c
parent7283a80d10217b929acf58899f016ca06dacdc53 (diff)
udev: add some asserts
Mostly for documentation purposes.
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index 34e88af539..056cf8c8ee 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -401,6 +401,8 @@ static void worker_spawn(Manager *manager, struct event *event) {
struct udev_event *udev_event;
int fd_lock = -1;
+ assert(dev);
+
log_debug("seq %llu running", udev_device_get_seqnum(dev));
udev_event = udev_event_new(dev);
if (udev_event == NULL) {