]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: smbios: always use '0x%04x' for printing handles
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 29 Jan 2024 17:09:50 +0000 (18:09 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 2 Feb 2024 18:55:29 +0000 (19:55 +0100)
Handles are u16 numbers. Consistently use '0x%04x' to print them.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
cmd/smbios.c

index feebf930b796ab78a956387b572d808c42bcc519..67f3a9f5f19010c93ea12bccdf34c19e0397a389 100644 (file)
@@ -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;