Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2221f6ef authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman
Browse files

Drivers: hv: vmbus: Use the standard format string to format GUIDs



Format GUIDS as per MSFT standard. This makes interacting with MSFT
tool stack easier.

Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Reviewed-by: default avatarHaiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: default avatarOlaf Hering <olaf@aepfle.de>
Reviewed-by: default avatarBen Hutchings <ben@decadent.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 83ba0c4f
Loading
Loading
Loading
Loading
+2 −36
Original line number Original line Diff line number Diff line
@@ -146,43 +146,9 @@ static ssize_t vmbus_show_device_attr(struct device *dev,
	get_channel_info(hv_dev, device_info);
	get_channel_info(hv_dev, device_info);


	if (!strcmp(dev_attr->attr.name, "class_id")) {
	if (!strcmp(dev_attr->attr.name, "class_id")) {
		ret = sprintf(buf, "{%02x%02x%02x%02x-%02x%02x-%02x%02x-"
		ret = sprintf(buf, "{%pUl}\n", device_info->chn_type.b);
			       "%02x%02x%02x%02x%02x%02x%02x%02x}\n",
			       device_info->chn_type.b[3],
			       device_info->chn_type.b[2],
			       device_info->chn_type.b[1],
			       device_info->chn_type.b[0],
			       device_info->chn_type.b[5],
			       device_info->chn_type.b[4],
			       device_info->chn_type.b[7],
			       device_info->chn_type.b[6],
			       device_info->chn_type.b[8],
			       device_info->chn_type.b[9],
			       device_info->chn_type.b[10],
			       device_info->chn_type.b[11],
			       device_info->chn_type.b[12],
			       device_info->chn_type.b[13],
			       device_info->chn_type.b[14],
			       device_info->chn_type.b[15]);
	} else if (!strcmp(dev_attr->attr.name, "device_id")) {
	} else if (!strcmp(dev_attr->attr.name, "device_id")) {
		ret = sprintf(buf, "{%02x%02x%02x%02x-%02x%02x-%02x%02x-"
		ret = sprintf(buf, "{%pUl}\n", device_info->chn_instance.b);
			       "%02x%02x%02x%02x%02x%02x%02x%02x}\n",
			       device_info->chn_instance.b[3],
			       device_info->chn_instance.b[2],
			       device_info->chn_instance.b[1],
			       device_info->chn_instance.b[0],
			       device_info->chn_instance.b[5],
			       device_info->chn_instance.b[4],
			       device_info->chn_instance.b[7],
			       device_info->chn_instance.b[6],
			       device_info->chn_instance.b[8],
			       device_info->chn_instance.b[9],
			       device_info->chn_instance.b[10],
			       device_info->chn_instance.b[11],
			       device_info->chn_instance.b[12],
			       device_info->chn_instance.b[13],
			       device_info->chn_instance.b[14],
			       device_info->chn_instance.b[15]);
	} else if (!strcmp(dev_attr->attr.name, "modalias")) {
	} else if (!strcmp(dev_attr->attr.name, "modalias")) {
		print_alias_name(hv_dev, alias_name);
		print_alias_name(hv_dev, alias_name);
		ret = sprintf(buf, "vmbus:%s\n", alias_name);
		ret = sprintf(buf, "vmbus:%s\n", alias_name);