From 01331951708f980fca1fb3a791ab544adcd3a5d0 Mon Sep 17 00:00:00 2001 From: Samer El-Haj-Mahmoud Date: Thu, 27 Nov 2014 01:01:43 +0000 Subject: MdeModulePkg: Misc comments and DEBUG messages Fixed some spelling typos in some comments. Added a couple of useful DEBUG messages Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Samer El-Haj-Mahmoud Reviewed-by: Feng Tian git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16450 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/I2c/I2cDxe/I2cHost.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'MdeModulePkg/Bus/I2c/I2cDxe') diff --git a/MdeModulePkg/Bus/I2c/I2cDxe/I2cHost.c b/MdeModulePkg/Bus/I2c/I2cDxe/I2cHost.c index ff99fe4461..319507cfa2 100644 --- a/MdeModulePkg/Bus/I2c/I2cDxe/I2cHost.c +++ b/MdeModulePkg/Bus/I2c/I2cDxe/I2cHost.c @@ -2,6 +2,7 @@ This file implements I2C Host Protocol which provides callers with the ability to do I/O transactions to all of the devices on the I2C bus. + Copyright (c) 2014, Hewlett-Packard Development Company, L.P.
Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -672,6 +673,10 @@ I2cHostI2cBusConfigurationAvailable ( I2cHostContext->I2cEvent, &I2cHostContext->Status ); + + if (EFI_ERROR (Status)) { + DEBUG((DEBUG_ERROR, "I2cHostI2cBusConfigurationAvailable: Error starting I2C operation, %r\n", Status)); + } } /** -- cgit v1.2.3