Lines Matching refs:logging
28 import datetime, logging
124 logging.info(' TPM 1.2 Version Info:\n')
125 logging.info(' Chip Version: %d.%d.%d.%d.', vi.version.major,
127 logging.info(' Spec Level: %d', vi.specLevel)
128 logging.info(' Errata Revision: %d', vi.errataRev)
130 logging.info(' TPM Vendor ID: %s', ''.join(vendorId))
132 logging.info(' Vendor Specific data (first 4 bytes in Hex): '
153 logging.info(' TPM Test Results: %s', ''.join(out))
177 logging.info('Attempt to load shared library %s', TSPI_C_LIB)
183 logging.info('Successfully loaded shared library %s', TSPI_C_LIB)
192 logging.debug('TPM context NOT set.')
199 logging.error('Error freeing memory when closing TPM context')
201 logging.debug('Tspi_Context_FreeMemory() success')
204 logging.error('Error closing TPM context')
206 logging.debug('Tspi_Context_Close() success')
224 logging.debug('Tspi_Context_CloseObject() success')
237 logging.debug('TPM context already set.')
243 logging.info('Created tspi context = 0x%x', self.hContext.value)
249 logging.info('Connected to tspi context')
255 logging.info('Got tpm object from tspi context = 0x%x', self.hTpm.value)
276 logging.info('Tspi_TPM_GetStatus(): success for flag 0x%x',
295 logging.info('Tspi_TPM_SetStatus(): success for flag 0x%x',
314 logging.debug('Tspi_GetPolicyObject(): hTpm = 0x%x, hPolicy = 0x%x',
322 logging.debug('Tspi_GetPolicyObject() success hTpm = 0x%x, '
345 logging.debug('Tspi_Policy_SetSecret(): hPolicy = 0x%x, secret_mode '
356 logging.debug('Tspi_Policy_SetSecret() success, hPolicy = 0x%x',
376 logging.debug('Successfully set up tspi context: hTpm = %r', self.hTpm)
386 logging.info('Successfully received TPM capability: '
410 logging.debug('Successfully set up tspi context: hTpm = 0x%x',
418 logging.info('Successfully executed TPM self test: hTpm = 0x%x',
426 logging.info('TPM self test results: uiResultLen = %d, pResult=%r',
446 logging.debug('Successfully set up tspi context: hTpm = 0x%x',
464 logging.debug('hTpm = 0x%x, flag = 0x%x, hSrk = 0x%x',
477 logging.debug('Successfully set up SRK policy: secret = %r, '
486 logging.info('Tspi_TPM_TakeOwnership error')
491 logging.info('Successfully took TPM ownership')
504 logging.debug('Successfully set up tspi context: hTpm = %r', self.hTpm)
510 logging.info('Successfully cleared TPM')
534 logging.debug('Successfully set up tspi context: hTpm = %r', self.hTpm)
542 logging.info('Persistent Deactivated Status: %s', bValue.value)
546 logging.info('Volatile Deactivated Status: %s', bValue.value)
550 logging.info('Successfully activated TPM')
554 logging.info('Successfully deactivated TPM')
558 logging.info('Successfully deactivated TPM for current boot')
582 logging.debug('Successfully set up tspi context: hTpm = %r', self.hTpm)
590 logging.info('Owner Clear Disabled: %s', bValue.value)
594 logging.info('Force Clear Disabled: %s', bValue.value)
601 logging.info('Successfully disabled Owner Clear')
605 logging.info('Successfully disabled Force Clear')