char *sysfs_path = NULL;
int ret = -1;
- if (virAsprintf(&sysfs_path, "%shost%d",
+ if (virAsprintf(&sysfs_path, "%s/host%d",
sysfs_prefix ? sysfs_prefix : SYSFS_FC_HOST_PATH,
host) < 0) {
virReportOOMError();
int ret = -1;
if (virAsprintf(&fc_host_path,
- "%shost%d/%s",
+ "%s/host%d/%s",
sysfs_prefix ? sysfs_prefix : SYSFS_FC_HOST_PATH,
host,
"vport_create") < 0) {
}
if (virAsprintf(&scsi_host_path,
- "%shost%d/%s",
+ "%s/host%d/%s",
sysfs_prefix ? sysfs_prefix : SYSFS_SCSI_HOST_PATH,
host,
"vport_create") < 0) {
}
if (virAsprintf(&operation_path,
- "%shost%d/%s",
+ "%s/host%d/%s",
SYSFS_FC_HOST_PATH,
parent_host,
operation_file) < 0) {
if (!virFileExists(operation_path)) {
VIR_FREE(operation_path);
if (virAsprintf(&operation_path,
- "%shost%d/%s",
+ "%s/host%d/%s",
SYSFS_SCSI_HOST_PATH,
parent_host,
operation_file) < 0) {
if (entry->d_name[0] == '.')
continue;
- if (virAsprintf(&wwnn_path, "%s%s/node_name", prefix,
+ if (virAsprintf(&wwnn_path, "%s/%s/node_name", prefix,
entry->d_name) < 0) {
virReportOOMError();
goto cleanup;
continue;
}
- if (virAsprintf(&wwpn_path, "%s%s/port_name", prefix,
+ if (virAsprintf(&wwpn_path, "%s/%s/port_name", prefix,
entry->d_name) < 0) {
virReportOOMError();
goto cleanup;