/* Return value: number of bytes printed to buffer  */
static ssize_t ibmvfc_show_log_level(struct device *dev, struct device_attribute *attr, char *buf)
/* Return value: number of bytes printed to buffer  */
static ssize_t ibmvfc_show_log_level(struct device *dev, struct device_attribute *attr, char *buf)
{
	struct Scsi_Host *shost = class_to_shost(dev);
	struct ibmvfc_host *vhost = shost_priv(shost);
	unsigned long flags = 0;
	int len;
	spin_lock_irqsave(shost->host_lock, flags);
	len = snprintf(buf, PAGE_SIZE, "%d\n", vhost->log_level);
	spin_unlock_irqrestore(shost->host_lock, flags);
	return len;
}