summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel P. Berrangé2022-03-10 18:18:05 +0100
committerDr. David Alan Gilbert2022-04-21 20:36:46 +0200
commita17ec44dba741de97e63efcda28852e73fca06dc (patch)
tree5f89d9013f552a4fb8e09ccc6ab013ab5af75bd0
parentMerge tag 'misc-pull-request' of gitlab.com:marcandre.lureau/qemu into staging (diff)
downloadqemu-a17ec44dba741de97e63efcda28852e73fca06dc.tar.gz
qemu-a17ec44dba741de97e63efcda28852e73fca06dc.tar.xz
qemu-a17ec44dba741de97e63efcda28852e73fca06dc.zip
tests: improve error message when saving TLS PSK file fails
Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20220310171821.3724080-3-berrange@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
-rw-r--r--tests/unit/crypto-tls-psk-helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/crypto-tls-psk-helpers.c b/tests/unit/crypto-tls-psk-helpers.c
index 7f8a488961..4bea7c6fa2 100644
--- a/tests/unit/crypto-tls-psk-helpers.c
+++ b/tests/unit/crypto-tls-psk-helpers.c
@@ -30,7 +30,7 @@ void test_tls_psk_init(const char *pskfile)
fp = fopen(pskfile, "w");
if (fp == NULL) {
- g_critical("Failed to create pskfile %s", pskfile);
+ g_critical("Failed to create pskfile %s: %s", pskfile, strerror(errno));
abort();
}
/* Don't do this in real applications! Use psktool. */