From 7225821d631f37f3c2b11e1d62aeb516b2acec30 Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Sat, 13 Nov 2004 14:51:10 +0100 Subject: [PATCH] [PATCH] disable logging for udevstart The slow logging facilites on some systems are a reason for the reported slowness of udevstart. On one of my boxes udevstart is down from 9 second to 0.3 seconds. --- Makefile | 4 ++-- udev.c | 1 + udevstart.c => udev_start.c | 0 3 files changed, 3 insertions(+), 2 deletions(-) rename udevstart.c => udev_start.c (100%) diff --git a/Makefile b/Makefile index 09b74fcd..efbb7435 100644 --- a/Makefile +++ b/Makefile @@ -283,8 +283,8 @@ $(SENDER).o: $(GEN_HEADERS) $(HOST_PROGS) $(STARTER).o: $(GEN_HEADERS) $(HOST_PROGS) $(WAIT).o: $(GEN_HEADERS) $(HOST_PROGS) -$(ROOT): $(LIBC) $(ROOT).o $(STARTER).o $(OBJS) $(HEADERS) $(GEN_MANPAGES) - $(QUIET) $(LD) $(LDFLAGS) -o $@ $(CRT0) udev.o udevstart.o $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS) +$(ROOT): $(LIBC) $(ROOT).o udev_start.o $(OBJS) $(HEADERS) $(GEN_MANPAGES) + $(QUIET) $(LD) $(LDFLAGS) -o $@ $(CRT0) udev.o udev_start.o $(OBJS) $(LIB_OBJS) $(ARCH_LIB_OBJS) $(QUIET) $(STRIPCMD) $@ $(TESTER): $(LIBC) $(TESTER).o $(OBJS) $(HEADERS) diff --git a/udev.c b/udev.c index a41f2227..78fe82cf 100644 --- a/udev.c +++ b/udev.c @@ -143,6 +143,7 @@ int main(int argc, char *argv[], char *envp[]) switch(act_type) { case UDEVSTART: dbg("udevstart"); + udev_log = 0; namedev_init(); retval = udev_start(); break; diff --git a/udevstart.c b/udev_start.c similarity index 100% rename from udevstart.c rename to udev_start.c -- 2.39.5