Messages in this thread Patch in this message | | | From | Nigel Cunningham <> | Subject | [Suspend2][ 07/12] [Suspend2] Encryption debug stats. | Date | Tue, 27 Jun 2006 14:38:26 +1000 |
| |
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/
| |