chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use udev_root instead of "/dev"in selinux matchpathcon_init_prefix()
[elogind.git]
/
udev_rules.c
diff --git
a/udev_rules.c
b/udev_rules.c
index 137ad27dbab5d5d200454eee3332460d71e4384f..492a9b0dfc89e81bd6333d65a142256ca5cdabae 100644
(file)
--- a/
udev_rules.c
+++ b/
udev_rules.c
@@
-39,7
+39,6
@@
#include "udev_version.h"
#include "logging.h"
#include "udev_rules.h"
#include "udev_version.h"
#include "logging.h"
#include "udev_rules.h"
-#include "udev_db.h"
/* extract possible {attr} and move str behind it */
/* extract possible {attr} and move str behind it */
@@
-376,7
+375,7
@@
attr_found:
return 0;
}
return 0;
}
-#define WAIT_LOOP_PER_SECOND
2
0
+#define WAIT_LOOP_PER_SECOND
5
0
static int wait_for_sysfs(struct udevice *udev, const char *file, int timeout)
{
char filename[PATH_SIZE];
static int wait_for_sysfs(struct udevice *udev, const char *file, int timeout)
{
char filename[PATH_SIZE];
@@
-392,9
+391,10
@@
static int wait_for_sysfs(struct udevice *udev, const char *file, int timeout)
info("file appeared after %i loops", (timeout * WAIT_LOOP_PER_SECOND) - loop-1);
return 0;
}
info("file appeared after %i loops", (timeout * WAIT_LOOP_PER_SECOND) - loop-1);
return 0;
}
+ info("wait for %i mseconds", 1000 / WAIT_LOOP_PER_SECOND);
usleep(1000 * 1000 / WAIT_LOOP_PER_SECOND);
}
usleep(1000 * 1000 / WAIT_LOOP_PER_SECOND);
}
-
info
("waiting for '%s' failed", filename);
+
err
("waiting for '%s' failed", filename);
return -1;
}
return -1;
}