aboutsummaryrefslogtreecommitdiff
path: root/libflash
diff options
context:
space:
mode:
authorCyril Bur <cyril.bur@au1.ibm.com>2015-09-08 16:14:02 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-09-08 16:22:41 +1000
commit559d8f93d023802ace966b01eb85622965529a69 (patch)
tree573c790e9070091ba3b19badf084566913390603 /libflash
parent525ba7f2d6d8b98027bcfc906d3b7a0fe1538828 (diff)
downloadskiboot-559d8f93d023802ace966b01eb85622965529a69.zip
skiboot-559d8f93d023802ace966b01eb85622965529a69.tar.gz
skiboot-559d8f93d023802ace966b01eb85622965529a69.tar.bz2
libflash/test: Fix Coverity defect 98827
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libflash')
-rw-r--r--libflash/test/test-ecc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libflash/test/test-ecc.c b/libflash/test/test-ecc.c
index 9d5a43a..ad017b2 100644
--- a/libflash/test/test-ecc.c
+++ b/libflash/test/test-ecc.c
@@ -381,7 +381,7 @@ int main(void)
for (i = 64; i < NUM_ECC_ROWS; i++) {
if (eccgenerate(be64toh(ecc_data[i].data)) != ecc_data[i].ecc) {
ERR("ECC did not generate the correct value, expecting 0x%02x, got 0x%02x\n",
- ecc_data[i].ecc, eccgenerate(dst));
+ ecc_data[i].ecc, eccgenerate(be64toh(ecc_data[i].data)));
}
}