@samitouri / QOSamiQemu / commits / 15c57ac351

scsi: adjust error_prepend() formatting

The error strings will be concatenated so add a separator to make the combined error message easy to read. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Link: https://lore.kernel.org/r/20260401171927.396672-2-stefanha@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Stefan Hajnoczi committed Apr 1, 2026 at 13:19 UTC 15c57ac351ccb4af625cd7dc582831f472c1a68f
1 file changed +2 -2
hw/scsi/scsi-generic.c
+2 -2
@@ -439,7 +439,7 @@ static bool scsi_generic_pr_register(SCSIDevice *s, uint64_t key, Error **errp)
439 ret = scsi_SG_IO(s->conf.blk, SG_DXFER_TO_DEV, cmd, sizeof(cmd),
440 buf, sizeof(buf), s->io_timeout, errp);
441 if (ret < 0) {
442 - error_prepend(errp, "PERSISTENT RESERVE OUT with REGISTER");
442 + error_prepend(errp, "PERSISTENT RESERVE OUT with REGISTER: ");
443 return false;
444 }
445 return true;
@@ -463,7 +463,7 @@ static bool scsi_generic_pr_preempt(SCSIDevice *s, uint64_t key,
463 ret = scsi_SG_IO(s->conf.blk, SG_DXFER_TO_DEV, cmd, sizeof(cmd),
464 buf, sizeof(buf), s->io_timeout, errp);
465 if (ret < 0) {
466 - error_prepend(errp, "PERSISTENT RESERVE OUT with PREEMPT");
466 + error_prepend(errp, "PERSISTENT RESERVE OUT with PREEMPT: ");
467 return false;
468 }
469 return true;