More debugging

More debug output for password.
This commit is contained in:
Johannes Bauer 2018-01-16 19:43:19 +01:00
parent 935d0f478d
commit aece35134e

View File

@ -155,7 +155,7 @@ static bool unlock_disk(const struct diskentry_t *disk, const uint8_t *passphras
sprintf_uuid(ascii_uuid, disk->disk_uuid); sprintf_uuid(ascii_uuid, disk->disk_uuid);
log_msg(LLVL_INFO, "Trying to unlock disk %s with UUID %s", disk->devmapper_name, ascii_uuid); log_msg(LLVL_INFO, "Trying to unlock disk %s with UUID %s", disk->devmapper_name, ascii_uuid);
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, "Using key: "); fprintf(stderr, "Using %d bytes key for unlocking: ", passphrase_length);
dump_hex(stderr, passphrase, passphrase_length); dump_hex(stderr, passphrase, passphrase_length);
fprintf(stderr, "\n"); fprintf(stderr, "\n");
#endif #endif