diff options
author | Piotr Król <piotr.krol@3mdeb.com> | 2016-11-11 15:33:58 +0100 |
---|---|---|
committer | Marcin Wojtas <mw@semihalf.com> | 2017-10-05 16:41:44 +0200 |
commit | 19b01e5407d2e4694126bd320588109cd255a088 (patch) | |
tree | 929b69ccd739daf6afb400f5310da9f31e499337 /Platform/Marvell/Drivers | |
parent | dbbd67537da11facf782d6d17db8366b3f3dfe3e (diff) | |
download | edk2-platforms-19b01e5407d2e4694126bd320588109cd255a088.tar.xz |
Marvell/Drivers: MvSpiDxe: Log and return correct error
Make log information clear where it came from and return correct code to
be interpreted by caller.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Piotr Król <piotr.krol@3mdeb.com>
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'Platform/Marvell/Drivers')
-rwxr-xr-x | Platform/Marvell/Drivers/Spi/MvSpiDxe.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Platform/Marvell/Drivers/Spi/MvSpiDxe.c b/Platform/Marvell/Drivers/Spi/MvSpiDxe.c index aab20fc9ac..968ebf6bc6 100755 --- a/Platform/Marvell/Drivers/Spi/MvSpiDxe.c +++ b/Platform/Marvell/Drivers/Spi/MvSpiDxe.c @@ -240,7 +240,8 @@ MvSpiTransfer ( }
if (Iterator >= SPI_TIMEOUT) {
- DEBUG ((DEBUG_ERROR, "Timeout\n"));
+ DEBUG ((DEBUG_ERROR, "%a: Timeout\n", __FUNCTION__));
+ return EFI_TIMEOUT;
}
}
|