From a5bdf343b75bc9a1e24734166b016706b54ce0e7 Mon Sep 17 00:00:00 2001 From: Richard Weinberger Date: Thu, 18 Oct 2018 16:37:13 +0200 Subject: mkfs.ubifs: Fix key descriptor printing normsg() sucks. Signed-off-by: Richard Weinberger Signed-off-by: David Oberhollenzer --- ubifs-utils/mkfs.ubifs/fscrypt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ubifs-utils/mkfs.ubifs/fscrypt.c b/ubifs-utils/mkfs.ubifs/fscrypt.c index ce6e2fc..29dad1b 100644 --- a/ubifs-utils/mkfs.ubifs/fscrypt.c +++ b/ubifs-utils/mkfs.ubifs/fscrypt.c @@ -69,11 +69,11 @@ void print_fscrypt_master_key_descriptor(struct fscrypt_context *fctx) { int i; - normsg_cont("fscrypt master key descriptor: "); + normsg_cont("fscrypt master key descriptor: 0x"); for (i = 0; i < FS_KEY_DESCRIPTOR_SIZE; i++) { - normsg_cont("%02x", fctx->master_key_descriptor[i]); + printf("%02x", fctx->master_key_descriptor[i]); } - normsg(""); + printf("\n"); } unsigned int fscrypt_fname_encrypted_size(struct fscrypt_context *fctx, -- cgit v1.2.3