aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-05 09:59:00 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-05 09:59:00 +0200
commitdd9c2e69e6d1a72ab322fea2f5104060fb88aec8 (patch)
tree9c0536201b3e8c39cb0469d8aa6a9b028d7e46b7
parentd4ea253aa8d22b93377069da9fe13aaf56683123 (diff)
downloadudev-block-notify-dd9c2e69e6d1a72ab322fea2f5104060fb88aec8.tar.gz
udev-block-notify-dd9c2e69e6d1a72ab322fea2f5104060fb88aec8.tar.zst
add more debug output
-rw-r--r--udev-block-notify.c4
1 files changed, 3 insertions, 1 deletions
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));