tpm: ibmvtpm: Use %zd formatting for size_t format arguments
This suppresses compile warnings on 32 bit builds. Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com> Reviewed-by: Joel Schopp <jschopp@linux.vnet.ibm.com> Reviewed-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Acked-by: Ashley Lai <adlai@linux.vnet.ibm.com>
This commit is contained in:
committed by
Peter Huewe
parent
901486b89b
commit
37ab034148
@@ -98,7 +98,7 @@ static int tpm_ibmvtpm_recv(struct tpm_chip *chip, u8 *buf, size_t count)
|
|||||||
|
|
||||||
if (count < len) {
|
if (count < len) {
|
||||||
dev_err(ibmvtpm->dev,
|
dev_err(ibmvtpm->dev,
|
||||||
"Invalid size in recv: count=%ld, crq_size=%d\n",
|
"Invalid size in recv: count=%zd, crq_size=%d\n",
|
||||||
count, len);
|
count, len);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
@@ -136,7 +136,7 @@ static int tpm_ibmvtpm_send(struct tpm_chip *chip, u8 *buf, size_t count)
|
|||||||
|
|
||||||
if (count > ibmvtpm->rtce_size) {
|
if (count > ibmvtpm->rtce_size) {
|
||||||
dev_err(ibmvtpm->dev,
|
dev_err(ibmvtpm->dev,
|
||||||
"Invalid size in send: count=%ld, rtce_size=%d\n",
|
"Invalid size in send: count=%zd, rtce_size=%d\n",
|
||||||
count, ibmvtpm->rtce_size);
|
count, ibmvtpm->rtce_size);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user