virutil: fix trailing '/' for path prefixes

The path prefixes for sysfs trees are always prepended by paths
beginning with a slash, making the trailing slash in the prefix
redundant.

Signed-off-by: Bjoern Walk <bwalk@linux.vnet.ibm.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
This commit is contained in:
Bjoern Walk 2016-11-18 14:18:26 +01:00 committed by John Ferlan
parent 7ab1fd91a4
commit fdb060f0b5

View File

@ -1777,8 +1777,8 @@ virGetDeviceUnprivSGIO(const char *path,
} }
#ifdef __linux__ #ifdef __linux__
# define SYSFS_FC_HOST_PATH "/sys/class/fc_host/" # define SYSFS_FC_HOST_PATH "/sys/class/fc_host"
# define SYSFS_SCSI_HOST_PATH "/sys/class/scsi_host/" # define SYSFS_SCSI_HOST_PATH "/sys/class/scsi_host"
/* virReadSCSIUniqueId: /* virReadSCSIUniqueId:
* @sysfs_prefix: "scsi_host" sysfs path, defaults to SYSFS_SCSI_HOST_PATH * @sysfs_prefix: "scsi_host" sysfs path, defaults to SYSFS_SCSI_HOST_PATH