]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
stubdom: vtpmmgr: Correctly format size_t with %z when printing.
authorIan Campbell <ian.campbell@citrix.com>
Fri, 26 Jun 2015 11:06:09 +0000 (12:06 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 3 Jul 2015 10:11:28 +0000 (11:11 +0100)
Also contains a fix from Thomas Leonard (to use %u for "4 + 32", not
%lu) previously posted as part of "mini-os: enable compiler check for
printk format types" but with mini-os now having been split a separate
repo most of that change has been applied there.

This fixes the 32-bit build with updated mini-os which includes format
string checking.

Signed-off-by: Thomas Leonard <talex5@gmail.com>
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Acked-By: Samuel Thibault <samuel.thibault@ens-lyon.org>
[ ijc -- Updated MINIOS_UPSTREAM_REVISION ]

Config.mk
stubdom/vtpmmgr/disk_read.c

index f597883d727bd90f13ee0cdedc087cf495b1730b..effc470a1db97e56768163253a4c425b021945f8 100644 (file)
--- a/Config.mk
+++ b/Config.mk
@@ -255,9 +255,9 @@ MINIOS_UPSTREAM_URL ?= git://xenbits.xen.org/mini-os.git
 endif
 OVMF_UPSTREAM_REVISION ?= cb9a7ebabcd6b8a49dc0854b2f9592d732b5afbd
 QEMU_UPSTREAM_REVISION ?= master
-MINIOS_UPSTREAM_REVISION ?= edfd5aae6ec5ba7d0a8834a3e9dfe5e69424150a
-# Thu Mar 12 19:08:05 2015 +0100
-# Fix accidentally removed brace causing a build error.
+MINIOS_UPSTREAM_REVISION ?= b36bcb370d611ad7f41e8c21d061e6291e088c58
+# Fri Jun 26 11:58:40 2015 +0100
+# Correct printf formatting for tpm_tis message.
 
 SEABIOS_UPSTREAM_REVISION ?= rel-1.8.2
 # Tue Mar 17 10:52:16 2015 -0400
index e9dc20ff1dcfc94a5b343b532fd75d278aac9edc..944d3ffda67123812b22dbbe22d6d06f26656e44 100644 (file)
@@ -548,18 +548,18 @@ int vtpm_load_disk(void)
        TPM_read_pcrs();
 
        printk("TPM Manager - disk format %d\n", TPM_MGR_VERSION);
-       printk(" root seal: %lu; sector of %d: %lu\n",
+       printk(" root seal: %zu; sector of %d: %zu\n",
                sizeof(struct disk_root_sealed_data), SEALS_PER_ROOT_SEAL_LIST, sizeof(struct disk_seal_list));
-       printk(" root: %lu v=%lu\n", sizeof(root1), sizeof(root1.v));
-       printk(" itree: %lu; sector of %d: %lu\n",
+       printk(" root: %zu v=%zu\n", sizeof(root1), sizeof(root1.v));
+       printk(" itree: %u; sector of %d: %zu\n",
                4 + 32, NR_ENTRIES_PER_ITREE, sizeof(struct disk_itree_sector));
-       printk(" group: %lu v=%lu id=%lu md=%lu\n",
+       printk(" group: %zu v=%zu id=%zu md=%zu\n",
                sizeof(struct disk_group_sector), sizeof(struct disk_group_sector_mac3_area),
                sizeof(struct group_id_data), sizeof(struct group_details));
-       printk(" group seal: %lu; %d in parent: %lu; sector of %d: %lu\n",
+       printk(" group seal: %zu; %d in parent: %zu; sector of %d: %zu\n",
                sizeof(struct disk_group_sealed_data), NR_SEALS_PER_GROUP, sizeof(struct disk_group_boot_config_list),
                SEALS_PER_GROUP_SEAL_LIST, sizeof(struct disk_group_seal_list));
-       printk(" vtpm: %lu+%lu; sector of %d: %lu\n",
+       printk(" vtpm: %zu+%zu; sector of %d: %zu\n",
                sizeof(struct disk_vtpm_plain), sizeof(struct disk_vtpm_secret),
                VTPMS_PER_SECTOR, sizeof(struct disk_vtpm_sector));