summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-03 00:12:23 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-03 00:12:23 +0200
commit4cb7f2203bbbb6d45516f7d3d6f7a27caf156fa6 (patch)
treeda6e49b7bbd739f2bce51112e6704fcb82da993e
parent4a2f61e5dd63a818c9c53f07c118b3fa0e1a34f2 (diff)
downloadudev-block-notify-4cb7f2203bbbb6d45516f7d3d6f7a27caf156fa6.tar.gz
udev-block-notify-4cb7f2203bbbb6d45516f7d3d6f7a27caf156fa6.tar.zst
add note about debug output
-rw-r--r--udev-block-notify.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/udev-block-notify.c b/udev-block-notify.c
index c9f5b1c..0db489d 100644
--- a/udev-block-notify.c
+++ b/udev-block-notify.c
@@ -66,7 +66,11 @@ int main (int argc, char ** argv) {
struct udev *udev = NULL;
unsigned short int i, j, major, minor;
- printf("%s: %s v%s (compiled: " __DATE__ ", " __TIME__ ")\n", argv[0], PROGNAME, VERSION);
+ printf("%s: %s v%s (compiled: " __DATE__ ", " __TIME__
+#if DEBUG
+ ", with debug output"
+#endif
+ ")\n", argv[0], PROGNAME, VERSION);
if(!notify_init("Udev-Block-Notification")) {
fprintf(stderr, "%s: Can't create notify.\n", argv[0]);