lkml.org 
[lkml]   [2006]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[Suspend2][ 07/12] [Suspend2] Encryption debug stats.
Date
If encryption is enabled, add a message to the debug information to
indicate that it is enabled and which algorithm is being used.

Signed-off-by: Nigel Cunningham <nigel@suspend2.net>

kernel/power/encryption.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/kernel/power/encryption.c b/kernel/power/encryption.c
index cd26e84..25db7ba 100644
--- a/kernel/power/encryption.c
+++ b/kernel/power/encryption.c
@@ -279,3 +279,21 @@ static int suspend_encrypt_read_chunk(st
return ret;
}

+/* suspend_encrypt_print_debug_stats
+ *
+ * Description: Print information to be recorded for debugging purposes into a
+ * buffer.
+ * Arguments: buffer: Pointer to a buffer into which the debug info will be
+ * printed.
+ * size: Size of the buffer.
+ * Returns: Number of characters written to the buffer.
+ */
+static int suspend_encrypt_print_debug_stats(char *buffer, int size)
+{
+ int len;
+
+ len = snprintf_used(buffer, size, "- Encryptor %s enabled.\n",
+ suspend_encryptor_name);
+ return len;
+}
+
--
Nigel Cunningham nigel at suspend2 dot net
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-27 07:15    [W:0.045 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site