diff options
author | Heinrich Schuchardt | 2024-01-29 18:09:50 +0100 |
---|---|---|
committer | Heinrich Schuchardt | 2024-02-02 19:55:29 +0100 |
commit | 7ca4b0ea6a5135cdf1e44fa6b338301e50e2af24 (patch) | |
tree | 265eda9850030bc0600014c0e4ee3f4277b2aa77 /cmd | |
parent | b327e64d5f541072d6a5051c05e5d55440a9038b (diff) |
cmd: smbios: always use '0x%04x' for printing handles
Handles are u16 numbers. Consistently use '0x%04x' to print them.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/smbios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/smbios.c b/cmd/smbios.c index feebf930b79..67f3a9f5f19 100644 --- a/cmd/smbios.c +++ b/cmd/smbios.c @@ -95,9 +95,9 @@ static void smbios_print_type2(struct smbios_type2 *table) smbios_print_str("Version", table, table->version); smbios_print_str("Serial Number", table, table->serial_number); smbios_print_str("Asset Tag", table, table->asset_tag_number); - printf("\tFeature Flags: 0x%2x\n", table->feature_flags); + printf("\tFeature Flags: 0x%04x\n", table->feature_flags); smbios_print_str("Chassis Location", table, table->chassis_location); - printf("\tChassis Handle: 0x%2x\n", table->chassis_handle); + printf("\tChassis Handle: 0x%04x\n", table->chassis_handle); smbios_print_str("Board Type", table, table->board_type); printf("\tContained Object Handles: "); handle = (void *)table->eos; |