From 86b0527958fd1259ba31dab415d7ad1791a2a12c Mon Sep 17 00:00:00 2001
From: Arie Peterson <arie@greenhost.nl>
Date: Thu, 27 Jul 2017 14:07:07 +0200
Subject: [PATCH] Show which keyslots are (un)succesfully destroyed on
 selfdestruct

---
 src/api/encryption_selfdestruct_post.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/api/encryption_selfdestruct_post.c b/src/api/encryption_selfdestruct_post.c
index 5b42d49..31b8315 100644
--- a/src/api/encryption_selfdestruct_post.c
+++ b/src/api/encryption_selfdestruct_post.c
@@ -38,12 +38,14 @@ int destroy_active_keyslots()
                 if (r == 0)
                 {
                     y_log_message(Y_LOG_LEVEL_DEBUG,
-                        "keyslot destroyed succesfully");
+                        "keyslot %d destroyed succesfully",
+                        i);
                 }
                 else
                 {
                     y_log_message(Y_LOG_LEVEL_ERROR,
-                        "failed to destroy keyslot");
+                        "failed to destroy keyslot %d",
+                        i);
                     result = 1;
                 }
             }
-- 
GitLab