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.
tprints(", lo_encrypt_type=");
printxval(loop_crypt_type_options, info.lo_encrypt_type,
"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=");