All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrangé" <berrange@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Daniel P. Berrangé" <berrange@redhat.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"Markus Armbruster" <armbru@redhat.com>
Subject: [PULL 2/6] crypto: add newline in error hint messages
Date: Mon, 23 Nov 2026 17:00:46 +0000	[thread overview]
Message-ID: <20261123170050.4166517-3-berrange@redhat.com> (raw)
In-Reply-To: <20261123170050.4166517-1-berrange@redhat.com>

The error_append_hint() API contract requires messages to end with
a newline character.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
 crypto/block-luks.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/crypto/block-luks.c b/crypto/block-luks.c
index c6ac3b2e29b..e98bf33bf9a 100644
--- a/crypto/block-luks.c
+++ b/crypto/block-luks.c
@@ -1671,7 +1671,7 @@ qcrypto_block_luks_amend_add_keyslot(QCryptoBlock *block,
 
     if (qcrypto_block_luks_find_key(block, old_password, master_key,
                                     readfunc, opaque, errp) < 0) {
-        error_append_hint(errp, "Failed to retrieve the master key");
+        error_append_hint(errp, "Failed to retrieve the master key\n");
         return -1;
     }
 
@@ -1684,7 +1684,7 @@ qcrypto_block_luks_amend_add_keyslot(QCryptoBlock *block,
     /* Now set the new keyslots */
     if (qcrypto_block_luks_store_key(block, keyslot, new_password, master_key,
                                      iter_time, writefunc, opaque, errp)) {
-        error_append_hint(errp, "Failed to write to keyslot %i", keyslot);
+        error_append_hint(errp, "Failed to write to keyslot %i\n", keyslot);
         return -1;
     }
     return 0;
@@ -1782,7 +1782,7 @@ qcrypto_block_luks_amend_erase_keyslots(QCryptoBlock *block,
 
         if (qcrypto_block_luks_erase_key(block, keyslot,
                                          writefunc, opaque, errp)) {
-            error_append_hint(errp, "Failed to erase keyslot %i", keyslot);
+            error_append_hint(errp, "Failed to erase keyslot %i\n", keyslot);
             return -1;
         }
 
@@ -1835,7 +1835,7 @@ qcrypto_block_luks_amend_erase_keyslots(QCryptoBlock *block,
             }
             if (qcrypto_block_luks_erase_key(block, i, writefunc,
                 opaque, errp)) {
-                error_append_hint(errp, "Failed to erase keyslot %zu", i);
+                error_append_hint(errp, "Failed to erase keyslot %zu\n", i);
                 return -1;
             }
         }
-- 
2.56.1



  parent reply	other threads:[~2026-11-23 17:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 17:00 [PULL 0/6] Misc fixes patches Daniel P. Berrangé
2026-11-23 17:00 ` [PULL 1/6] crypto: avoid overwriting Error object erasing keyslot Daniel P. Berrangé
2026-11-23 17:00 ` Daniel P. Berrangé [this message]
2026-11-23 17:00 ` [PULL 3/6] tests/functional: update to newer sunxi kernel package Daniel P. Berrangé
2026-11-30 16:21   ` Brian Cain
2026-11-30 16:31     ` Brian Cain
2026-12-01  9:12     ` Daniel P. Berrangé
2026-11-23 17:00 ` [PULL 4/6] tests/functional: add Accept header when downloading assets Daniel P. Berrangé
2026-11-23 17:00 ` [PULL 5/6] docs: document 'unavailable' state is no longer output Daniel P. Berrangé
2026-11-23 17:00 ` [PULL 6/6] qapi: correctly mark 'ignore-unavailable' deprecated Daniel P. Berrangé
2026-11-23 20:32 ` [PULL 0/6] Misc fixes patches Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261123170050.4166517-3-berrange@redhat.com \
    --to=berrange@redhat.com \
    --cc=armbru@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.