summaryrefslogtreecommitdiff
path: root/wait_for_sysfs.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-11-05 13:17:30 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 22:09:26 -0700
commit52a6ef66f2e98491b40b176619035abca3777a2c (patch)
treeb4e7947200a8543d6f879ace07070ec683d6e114 /wait_for_sysfs.c
parente920fed3499aa1445657b62499a11348faa3b24e (diff)
[PATCH] Shut up wait_for_sysfs class/net failure messages, as it's not possible
Diffstat (limited to 'wait_for_sysfs.c')
-rw-r--r--wait_for_sysfs.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/wait_for_sysfs.c b/wait_for_sysfs.c
index 91a2b6b628..3b1b0cd248 100644
--- 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);
+ /*
+ * 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)) {