View | Details | Raw Unified | Return to bug 95834
Collapse All | Expand All

(-)tools/get_config_lib.c.orig (-2 / +4 lines)
Lines 779-786 Link Here
779
//	print_hwdesc(hwdesc, sfcd_iface->name, 0);
779
//	print_hwdesc(hwdesc, sfcd_iface->name, 0);
780
//	printf("interface: '%s'  config: '%s' matchconfig: '%s'\n",
780
//	printf("interface: '%s'  config: '%s' matchconfig: '%s'\n",
781
//	       sfcd_iface->name, hwdesc->config[0], configname);
781
//	       sfcd_iface->name, hwdesc->config[0], configname);
782
	if (*configname != '\0' && strcmp(hwdesc->config[0], configname))
782
	if (*configname != '\0' && strcmp(hwdesc->config[0], configname)){
783
		error_log(LOG_ERR, "configname did not match with entries <%s> and <%s>\n", hwdesc->config[0], configname);
783
		continue;
784
		continue;
785
	}
784
	if (*interfaces != '\0')
786
	if (*interfaces != '\0')
785
	    strcat(interfaces, " ");
787
	    strcat(interfaces, " ");
786
	strcat(interfaces, sfcd_iface->name);
788
	strcat(interfaces, sfcd_iface->name);
Lines 788-794 Link Here
788
    }
790
    }
789
    sysfs_close_class(sfc_class);
791
    sysfs_close_class(sfc_class);
790
792
791
793
    if ( r != 1) error_log(LOG_ERR, "get_all_interfaces returns %d\n", r);
792
    return r;
794
    return r;
793
}
795
}
794
796

Return to bug 95834