src/luks.c: improve code readability
This commit is contained in:
parent
003dc8d883
commit
cab9ca6645
1 changed files with 3 additions and 2 deletions
|
@ -38,11 +38,12 @@
|
|||
|
||||
static void set_LUKS_info(const struct luks_phdr *sb, partition_t *partition)
|
||||
{
|
||||
const unsigned int version=be16(sb->version);
|
||||
partition->upart_type=UP_LUKS;
|
||||
if(partition->part_size > 0)
|
||||
sprintf(partition->info,"LUKS %u", be16(sb->version));
|
||||
sprintf(partition->info,"LUKS %u", version);
|
||||
else
|
||||
sprintf(partition->info,"LUKS %u (Data size unknown)", be16(sb->version));
|
||||
sprintf(partition->info,"LUKS %u (Data size unknown)", version);
|
||||
}
|
||||
|
||||
static int test_LUKS(const disk_t *disk_car, const struct luks_phdr *sb, const partition_t *partition, const int dump_ind)
|
||||
|
|
Loading…
Reference in a new issue