summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/i2c/tpm/cr50.c4
-rw-r--r--src/drivers/spi/spi_flash.c2
-rw-r--r--src/drivers/spi/tpm/tpm.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/i2c/tpm/cr50.c b/src/drivers/i2c/tpm/cr50.c
index 696533969c..b5cb32ce39 100644
--- a/src/drivers/i2c/tpm/cr50.c
+++ b/src/drivers/i2c/tpm/cr50.c
@@ -173,7 +173,7 @@ static int process_reset(void)
continue;
}
- printk(BIOS_INFO, "TPM ready after %ld ms\n",
+ printk(BIOS_INFO, "TPM ready after %lld ms\n",
stopwatch_duration_msecs(&sw));
return 0;
@@ -183,7 +183,7 @@ static int process_reset(void)
printk(BIOS_ERR, "Failed to read TPM\n");
else
printk(BIOS_ERR,
- "TPM failed to reset after %ld ms, status: %#x\n",
+ "TPM failed to reset after %lld ms, status: %#x\n",
stopwatch_duration_msecs(&sw), access);
return -1;
diff --git a/src/drivers/spi/spi_flash.c b/src/drivers/spi/spi_flash.c
index 9934f55e49..5d78b6124b 100644
--- a/src/drivers/spi/spi_flash.c
+++ b/src/drivers/spi/spi_flash.c
@@ -212,7 +212,7 @@ int spi_flash_cmd_poll_bit(const struct spi_flash *flash, unsigned long timeout,
return 0;
} while (!stopwatch_expired(&sw));
- printk(BIOS_WARNING, "SF: timeout at %ld msec after %d attempts\n",
+ printk(BIOS_WARNING, "SF: timeout at %lld msec after %d attempts\n",
stopwatch_duration_msecs(&sw), attempt);
return -1;
diff --git a/src/drivers/spi/tpm/tpm.c b/src/drivers/spi/tpm/tpm.c
index 5645e57d82..68f9588d53 100644
--- a/src/drivers/spi/tpm/tpm.c
+++ b/src/drivers/spi/tpm/tpm.c
@@ -390,14 +390,14 @@ static enum cb_err tpm2_claim_locality(void)
break;
}
- printk(BIOS_INFO, "TPM ready after %ld ms\n",
+ printk(BIOS_INFO, "TPM ready after %lld ms\n",
stopwatch_duration_msecs(&sw));
return CB_SUCCESS;
} while (!stopwatch_expired(&sw));
printk(BIOS_ERR,
- "Failed to claim locality 0 after %ld ms, status: %#x\n",
+ "Failed to claim locality 0 after %lld ms, status: %#x\n",
stopwatch_duration_msecs(&sw), access);
return CB_ERR;