Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 470
b: refs/heads/master
c: b76be68
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Apr 26, 2005
1 parent fb2ad86 commit 74d9abd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8cf381ca3c4a2410cea9615e205bc41bd4275e1e
refs/heads/master: b76be681f8b296c00f707220b9891934d5d74778
6 changes: 3 additions & 3 deletions trunk/drivers/char/tpm/tpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,15 @@ static ssize_t tpm_transmit(struct tpm_chip *chip, const char *buf,
return -ENODATA;
if (count > bufsiz) {
dev_err(&chip->pci_dev->dev,
"invalid count value %x %x \n", count, bufsiz);
"invalid count value %x %zx \n", count, bufsiz);
return -E2BIG;
}

down(&chip->tpm_mutex);

if ((len = chip->vendor->send(chip, (u8 *) buf, count)) < 0) {
dev_err(&chip->pci_dev->dev,
"tpm_transmit: tpm_send: error %d\n", len);
"tpm_transmit: tpm_send: error %zd\n", len);
return len;
}

Expand Down Expand Up @@ -188,7 +188,7 @@ static ssize_t tpm_transmit(struct tpm_chip *chip, const char *buf,
len = chip->vendor->recv(chip, (u8 *) buf, bufsiz);
if (len < 0)
dev_err(&chip->pci_dev->dev,
"tpm_transmit: tpm_recv: error %d\n", len);
"tpm_transmit: tpm_recv: error %zd\n", len);
up(&chip->tpm_mutex);
return len;
}
Expand Down

0 comments on commit 74d9abd

Please sign in to comment.