mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-25 01:07:22 +00:00
Produce better error message when TPM device cannot be opened.
BUG=chromium-os:16925 TEST=run "tpmc getvf" before stopping tcsd and observe that the error message no longer says "forgot to call TlclLibInit()" Change-Id: I867c010c07286c0aa4cec49dda60524de1c2bec1 Reviewed-on: http://gerrit.chromium.org/gerrit/3147 Tested-by: Luigi Semenzato <semenzato@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
@@ -126,9 +126,7 @@ uint32_t TlclOpenDevice(void) {
|
||||
|
||||
tpm_fd = open(device_path, O_RDWR);
|
||||
if (tpm_fd < 0) {
|
||||
VBDEBUG(("TPM: Cannot open TPM device %s: %s\n", device_path,
|
||||
strerror(errno)));
|
||||
return TPM_E_IOERROR;
|
||||
error("TPM: Cannot open TPM device %s: %s\n", device_path, strerror(errno));
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user