From 7b774d77dfc975a3aefcafa34d943745258d7215 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 28 Oct 2014 10:02:45 -0500 Subject: [PATCH] chromeos: fix compilation with size_t formatting %d is not appropriate for size_t types. %zd is required. BUG=None BRANCH=None TEST=Built on 64-bit. Change-Id: I4e1d2275b6ee7d7c8d23edb84701a52a3844d38f Signed-off-by: Aaron Durbin Reviewed-on: https://chromium-review.googlesource.com/225900 Reviewed-by: Vadim Bendebury Reviewed-by: Anatol Pomazau --- src/vendorcode/google/chromeos/vpd_calibration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vendorcode/google/chromeos/vpd_calibration.c b/src/vendorcode/google/chromeos/vpd_calibration.c index 1bccf5a8f6..3bfd843db0 100644 --- a/src/vendorcode/google/chromeos/vpd_calibration.c +++ b/src/vendorcode/google/chromeos/vpd_calibration.c @@ -161,7 +161,7 @@ void cbmem_add_vpd_calibration_data(void) cbmem_entry_size += sizeof(struct calibration_entry); cbmem_entry = cbmem_add(CBMEM_ID_WIFI_CALIBRATION, cbmem_entry_size); if (!cbmem_entry) { - printk(BIOS_ERR, "%s: no room in cbmem table to add %d bytes\n", + printk(BIOS_ERR, "%s: no room in cbmem to add %zd bytes\n", __func__, cbmem_entry_size); return; }