diff options
author | Che-Liang Chiou <clchiou@chromium.org> | 2011-04-14 15:35:21 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-24 10:01:08 -0700 |
commit | 36113f6dd543a0af2543a128549a0da36bb66c54 (patch) | |
tree | 5db8b05a7ebf4ab5e1b5b91b29459187004ea4f2 /drivers | |
parent | 85d4b16be18ee79b46fd0a90b1d6651ef034a863 (diff) |
Replace VBOOT_DEBUG with DEBUG
Since even ebuild does not support VBOOT_DEBUG, I think it is better we
simply use DEBUG for enabling debug message.
R=rongchang@chromium.org
BUG=none
TEST=MAKEALL successfully
Review URL: http://codereview.chromium.org/6831012
Change-Id: If5ba48d79e464f695960d5cbfdd1291687bfa81f
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/tpm/slb9635_i2c/tpm_proto.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/tpm/slb9635_i2c/tpm_proto.c b/drivers/tpm/slb9635_i2c/tpm_proto.c index dc485a9ed15..ab750a812db 100644 --- a/drivers/tpm/slb9635_i2c/tpm_proto.c +++ b/drivers/tpm/slb9635_i2c/tpm_proto.c @@ -103,11 +103,11 @@ typedef struct s_inf_stat_reg { */ #define HUGE_BUFFER_SIZE 300 -#ifdef VBOOT_DEBUG +#ifdef DEBUG #define vboot_debug printf #else #define vboot_debug debug -#endif /* VBOOT_DEBUG */ +#endif /* DEBUG */ #define TPM_CHECK(XACTION) do { \ int ret_code = XACTION; \ @@ -133,7 +133,7 @@ static uint8_t xor_checksum(const uint8_t *array, size_t len) static inline void tpm_i2c_debug_dump(const uint8_t *data, int dir_w, size_t len) { -#ifdef VBOOT_DEBUG +#ifdef DEBUG uint32_t i; size_t data_len = len - DATA_START - 1; printf("%c - transport header %02x %02x %02x %02x %02x\n", @@ -147,7 +147,7 @@ static inline void tpm_i2c_debug_dump(const uint8_t *data, int dir_w, printf("%02x ", data[i + DATA_START]); } printf("\n - checksum %02x\n", data[DATA_START + data_len]); -#endif /* VBOOT_DEBUG */ +#endif /* DEBUG */ } /* 'to' buffer must be 6 bytes more larger than 'from' byte length */ @@ -377,17 +377,17 @@ int tpm_init_v03(void) i2c_set_bus_num(CONFIG_INFINEON_TPM_I2C_BUS); #endif ret_code = i2c_probe(INFINEON_TPM_CHIP); - #ifdef VBOOT_DEBUG + #ifdef DEBUG printf("v03 probe : %s\n", ret_code ? "N/A" : "found"); - #endif /* VBOOT_DEBUG */ + #endif /* DEBUG */ if (ret_code) return ret_code; ret_code = tpm_status_v03(&ready_write, &ready_read, &read_len); - #ifdef VBOOT_DEBUG + #ifdef DEBUG printf("status : %d\n\tw[%c] r[%c : %u]\n", ret_code, ready_write ? 'y' : 'n', ready_read ? 'y' : 'n', read_len); - #endif /* VBOOT_DEBUG */ + #endif /* DEBUG */ if (ret_code) return ret_code; TPM_CHECK(tpm_prepare_write(TIMEOUT_WRITE_MS)); |