X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Ftest%2Ftest-udev.c;h=b0647441f0bc7e3ced12266eeece6ef7c193495e;hp=17825f12b4031cf5c1e0195c369916b7ad4fa1fd;hb=e0dd92729e68e0005866a890d8209ddcf3568805;hpb=1ca208fb4f93e5869704af1812cbff7130a2fc03 diff --git a/src/test/test-udev.c b/src/test/test-udev.c index 17825f12b..b0647441f 100644 --- a/src/test/test-udev.c +++ b/src/test/test-udev.c @@ -81,8 +81,7 @@ out: } -int main(int argc, char *argv[]) -{ +int main(int argc, char *argv[]) { _cleanup_udev_unref_ struct udev *udev = NULL; _cleanup_udev_event_unref_ struct udev_event *event = NULL; _cleanup_udev_device_unref_ struct udev_device *dev = NULL; @@ -101,20 +100,20 @@ int main(int argc, char *argv[]) if (udev == NULL) return EXIT_FAILURE; - log_debug("version %s\n", VERSION); + log_debug("version %s", VERSION); label_init("/dev"); sigprocmask(SIG_SETMASK, NULL, &sigmask_orig); action = argv[1]; if (action == NULL) { - log_error("action missing\n"); + log_error("action missing"); goto out; } devpath = argv[2]; if (devpath == NULL) { - log_error("devpath missing\n"); + log_error("devpath missing"); goto out; } @@ -123,7 +122,7 @@ int main(int argc, char *argv[]) strscpyl(syspath, sizeof(syspath), "/sys", devpath, NULL); dev = udev_device_new_from_syspath(udev, syspath); if (dev == NULL) { - log_debug("unknown device '%s'\n", devpath); + log_debug("unknown device '%s'", devpath); goto out; }