From a2fec126670a0395078c78b7234ef3936b0a8449 Mon Sep 17 00:00:00 2001
From: David Plowman <david.plowman@raspberrypi.com>
Date: Wed, 27 Jan 2021 11:47:54 +0000
Subject: ipa: raspberrypi: alsc: Fix copy-paste error in debug statement

Reported-by: Coverity CID=309689
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 src/ipa/raspberrypi/controller/rpi/alsc.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/ipa')

diff --git a/src/ipa/raspberrypi/controller/rpi/alsc.cpp b/src/ipa/raspberrypi/controller/rpi/alsc.cpp
index 5262bcab..b0d24aa2 100644
--- a/src/ipa/raspberrypi/controller/rpi/alsc.cpp
+++ b/src/ipa/raspberrypi/controller/rpi/alsc.cpp
@@ -403,7 +403,7 @@ void get_cal_table(double ct, std::vector<AlscCalibration> const &calibrations,
 		memcpy(cal_table, calibrations.back().table,
 		       XY * sizeof(double));
 		LOG(RPiAlsc, Debug) << "using calibration for "
-				    << calibrations.front().ct;
+				    << calibrations.back().ct;
 	} else {
 		int idx = 0;
 		while (ct > calibrations[idx + 1].ct)
-- 
cgit v1.2.1