loop: print lo_encrypt_key_size field of struct loop_info as unsigned
It is converted to an unsigned value in kernel (see loop_info64_from_old in drivers/block/loop.c), so let's print it that way despite its type. * loop.c (decode_loop_info): Print lo_encrypt_key_size as an uint32_t value.
This commit is contained in:
parent
1ccc55eed2
commit
426b63f3fa
7
loop.c
7
loop.c
@ -64,7 +64,12 @@ decode_loop_info(struct tcb *const tcp, const kernel_ulong_t addr)
|
|||||||
tprints(", lo_encrypt_type=");
|
tprints(", lo_encrypt_type=");
|
||||||
printxval(loop_crypt_type_options, info.lo_encrypt_type,
|
printxval(loop_crypt_type_options, info.lo_encrypt_type,
|
||||||
"LO_CRYPT_???");
|
"LO_CRYPT_???");
|
||||||
tprintf(", lo_encrypt_key_size=%d", info.lo_encrypt_key_size);
|
/*
|
||||||
|
* It is converted to unsigned before use in kernel, see
|
||||||
|
* loop_info64_from_old in drivers/block/loop.c
|
||||||
|
*/
|
||||||
|
tprintf(", lo_encrypt_key_size=%" PRIu32,
|
||||||
|
(uint32_t) info.lo_encrypt_key_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
tprints(", lo_flags=");
|
tprints(", lo_flags=");
|
||||||
|
Loading…
Reference in New Issue
Block a user