summaryrefslogtreecommitdiff
path: root/udevtest.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-08-28 02:38:53 +0200
committerKay Sievers <kay.sievers@suse.de>2006-08-28 02:38:53 +0200
commit7b0859746791a6af264862f420e04d52fe05e767 (patch)
treec138b6f8654173038f9b5bb40cc2bd588b4b6e6a /udevtest.c
parent27b77df44daebbd7597c572343105c16de099233 (diff)
udevtest: print header that ENV{} can't work
Diffstat (limited to 'udevtest.c')
-rw-r--r--udevtest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/udevtest.c b/udevtest.c
index d17157cbd1..2854f7558f 100644
--- a/udevtest.c
+++ b/udevtest.c
@@ -111,6 +111,11 @@ int main(int argc, char *argv[], char *envp[])
setenv("SUBSYSTEM", udev->dev->subsystem, 1);
setenv("ACTION", "add", 1);
+ printf("This program is for debugging only, it does not create any node,\n"
+ "or run any program specified by a RUN key. It may show incorrect results,\n"
+ "if rules match against subsystem specfic kernel event variables.\n"
+ "\n");
+
info("looking at device '%s' from subsystem '%s'", udev->dev->devpath, udev->dev->subsystem);
retval = udev_device_event(&rules, udev);
if (retval == 0 && !udev->ignore_device && udev_run) {