zpcictl: Rename misleading sysfs_write_data

To sysfs_report_error as it only writes to the report_error attribute.

Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Niklas Schnelle
2020-02-06 17:01:30 +01:00
committed by Jan Höppner
parent bc0d40c580
commit d77234ddb6

View File

@@ -183,7 +183,7 @@ static void sysfs_write_value(struct zpci_device *pdev, const char *attr,
free(path);
}
static void sysfs_write_data(struct zpci_report_error *report, char *slot)
static void sysfs_report_error(struct zpci_report_error *report, char *slot)
{
size_t r_size;
char *path;
@@ -308,7 +308,7 @@ static void sclp_issue_action(struct zpci_device *pdev, int action)
sizeof(report.data.log_data));
free(sdata);
}
sysfs_write_data(&report, pdev->slot);
sysfs_report_error(&report, pdev->slot);
}
/*