diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-12-15 16:14:14 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-12-15 16:14:14 +0100 |
commit | 3c1898863fbf9c94cfb0258ae380b67b44c4b466 (patch) | |
tree | f5671df4da5de8c33ddb55dd554383ad73151270 /udev | |
parent | ac9b4baac52d8713512629272384124fa1d01b23 (diff) |
remove remaining support for CONFIG_SYSFS_DEPRECATED
Diffstat (limited to 'udev')
-rw-r--r-- | udev/udevd.c | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/udev/udevd.c b/udev/udevd.c index 300d603519..99647c683c 100644 --- a/udev/udevd.c +++ b/udev/udevd.c @@ -764,37 +764,11 @@ static void handle_signal(struct udev *udev, int signo) } } -static void startup_log(struct udev *udev) -{ - FILE *f; - char path[UTIL_PATH_SIZE]; - struct stat statbuf; - - f = fopen("/dev/kmsg", "w"); - if (f != NULL) - fprintf(f, "<6>udev: starting version " VERSION "\n"); - - util_strscpyl(path, sizeof(path), udev_get_sys_path(udev), "/class/mem/null", NULL); - if (lstat(path, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { - const char *depr_str = - "udev: missing sysfs features; please update the kernel " - "or disable the kernel's CONFIG_SYSFS_DEPRECATED option; " - "udev may fail to work correctly"; - - if (f != NULL) - fprintf(f, "<3>%s\n", depr_str); - err(udev, "%s\n", depr_str); - sleep(15); - } - - if (f != NULL) - fclose(f); -} - int main(int argc, char *argv[]) { struct udev *udev; int fd; + FILE *f; sigset_t mask; const char *value; int daemonize = false; @@ -988,7 +962,11 @@ int main(int argc, char *argv[]) } } - startup_log(udev); + f = fopen("/dev/kmsg", "w"); + if (f != NULL) { + fprintf(f, "<6>udev: starting version " VERSION "\n"); + fclose(f); + } /* redirect std{out,err} */ if (!debug && !debug_trace) { |