From dd9c2e69e6d1a72ab322fea2f5104060fb88aec8 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 5 Jul 2013 09:59:00 +0200 Subject: add more debug output --- udev-block-notify.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/udev-block-notify.c b/udev-block-notify.c index 947b212..19c5d31 100644 --- a/udev-block-notify.c +++ b/udev-block-notify.c @@ -103,7 +103,9 @@ int main (int argc, char ** argv) { devnum = udev_device_get_devnum(dev); major = major(devnum); minor = minor(devnum); - +#if DEBUG + printf("%s: Processing device %d:%d\n", argv[0], major, minor); +#endif /* make sure we have allocated memory */ if (maxmajor < major) { notification = realloc(notification, (major + 1) * sizeof(size_t)); -- cgit v1.2.3-70-g09d2