summaryrefslogtreecommitdiff
path: root/udevtest.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-05-21 07:02:04 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-05-21 07:02:04 +0200
commit86fd6b4f61cefe402d81d61db7d8cb1f79d5ba71 (patch)
tree43e18584475318e96c062da5945fdbaf36660737 /udevtest.c
parent9e23328e5357589f7a2edfff933513aa72df112e (diff)
udevtest: print message before log output
Diffstat (limited to 'udevtest.c')
-rw-r--r--udevtest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/udevtest.c b/udevtest.c
index 9868c9bcd3..91749a4eef 100644
--- a/udevtest.c
+++ b/udevtest.c
@@ -149,6 +149,11 @@ int main(int argc, char *argv[], char *envp[])
goto exit;
}
+ printf("This program is for debugging only, it does not run any program,\n"
+ "specified by a RUN key. It may show incorrect results, because\n"
+ "some values may be different, or not available at a simulation run.\n"
+ "\n");
+
sysfs_init();
udev_rules_init(&rules, 0);
@@ -184,11 +189,6 @@ int main(int argc, char *argv[], char *envp[])
setenv("ACTION", udev->action, 1);
import_uevent_var(udev->dev->devpath);
- printf("This program is for debugging only, it does not run any program,\n"
- "specified by a RUN key. It may show incorrect results, because\n"
- "some values may be different, or not available at a simulation run.\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) {