X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=namedev.c;h=99542dc4d668a1216eb92e5f2ee7ee6cbfd1e718;hb=c94705b5648499c58b32099dc3a303b64e1de603;hp=6ed2415cdd6fef71d3e7ba6ee33066a1d9c1b766;hpb=9d496c74f3a6b1963727b515126e87e64abe046c;p=elogind.git diff --git a/namedev.c b/namedev.c index 6ed2415cd..99542dc4d 100644 --- a/namedev.c +++ b/namedev.c @@ -22,7 +22,7 @@ */ /* define this to enable parsing debugging */ -#define DEBUG_PARSER +/* #define DEBUG_PARSER */ #include #include @@ -527,10 +527,12 @@ static int exec_callout(struct config_device *dev, char *value, int len) retval = -1; } +#ifndef __KLIBC__ if (!WIFEXITED(status) || (WEXITSTATUS(status) != 0)) { dbg("callout program status 0x%x", status); retval = -1; } +#endif } return retval; } @@ -566,7 +568,7 @@ static int get_attr(struct sysfs_class_device *class_dev, struct udevice *udev) /* look in the class device directory if present */ if (class_dev->sysdevice) { - tmpattr = sysfs_get_classdev_attr(class_dev, dev->sysfs_file); + tmpattr = sysfs_get_device_attr(class_dev->sysdevice, dev->sysfs_file); if (tmpattr) goto label_found; } @@ -599,7 +601,7 @@ static int get_attr(struct sysfs_class_device *class_dev, struct udevice *udev) /* look in the class device directory if present */ if (class_dev_parent->sysdevice) { - tmpattr = sysfs_get_classdev_attr(class_dev_parent, dev->sysfs_file); + tmpattr = sysfs_get_device_attr(class_dev_parent->sysdevice, dev->sysfs_file); if (tmpattr) goto label_found; }