/* erplog controls the logging of ERP related data (e.g. failing channel programs).  */
static ssize_t dasd_erplog_show(struct device *dev, struct device_attribute *attr, char *buf)
/* erplog controls the logging of ERP related data (e.g. failing channel programs).  */
static ssize_t dasd_erplog_show(struct device *dev, struct device_attribute *attr, char *buf)
{
	struct dasd_devmap *devmap;
	int erplog;
	devmap = dasd_find_busid(dev_name(dev));
	if (!IS_ERR(devmap))
		erplog = (devmap->features & DASD_FEATURE_ERPLOG) != 0;
	else
		erplog = (DASD_FEATURE_DEFAULT & DASD_FEATURE_ERPLOG) != 0;
	return snprintf(buf, PAGE_SIZE, erplog ? "1\n" : "0\n");
}