chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e920fed
)
[PATCH] Shut up wait_for_sysfs class/net failure messages, as it's not possible
author
kay.sievers@vrfy.org
<kay.sievers@vrfy.org>
Fri, 5 Nov 2004 12:17:30 +0000
(13:17 +0100)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 05:09:26 +0000
(22:09 -0700)
wait_for_sysfs.c
patch
|
blob
|
history
diff --git
a/wait_for_sysfs.c
b/wait_for_sysfs.c
index 91a2b6b62884c3a446dd2936aa6bbce9bd922c4f..3b1b0cd24809a249700c284746cf7dbdf5714760 100644
(file)
--- a/
wait_for_sysfs.c
+++ b/
wait_for_sysfs.c
@@
-116,6
+116,15
@@
int main(int argc, char *argv[], char *envp[])
/* wait for the class device with possible physical device and bus */
wait_for_class_device(class_dev, &error);
/* wait for the class device with possible physical device and bus */
wait_for_class_device(class_dev, &error);
+ /*
+ * we got too many unfixable class/net errors, kernel later than 2.6.10-rc1 will
+ * solve this by exporting the needed information with the hotplug event
+ * until we use this just don't print any error for net devices, but still
+ * wait for it.
+ */
+ if (strncmp(devpath, "/class/net/", 11) == 0)
+ error = NULL;
+
sysfs_close_class_device(class_dev);
} else if ((strncmp(devpath, "/devices/", 9) == 0)) {
sysfs_close_class_device(class_dev);
} else if ((strncmp(devpath, "/devices/", 9) == 0)) {