From b671ee6846b79a6d106efed7cf7e1209b2cc408d Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Mon, 17 Oct 2016 14:14:50 -0700 Subject: [PATCH] =?UTF-8?q?HDFS-11013.=20Correct=20typos=20in=20native=20e?= =?UTF-8?q?rasure=20coding=20dump=20code.=20Contributed=20by=20L=C3=A1szl?= =?UTF-8?q?=C3=B3=20Bence=20Nagy.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../native/src/org/apache/hadoop/io/erasurecode/dump.c | 8 ++++---- .../src/org/apache/hadoop/io/erasurecode/isal_load.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/dump.c b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/dump.c index 20bd1893fd0..e48032e15e6 100644 --- a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/dump.c +++ b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/dump.c @@ -57,11 +57,11 @@ void dumpCodingMatrix(unsigned char* buf, int n1, int n2) { void dumpEncoder(IsalEncoder* pCoder) { int numDataUnits = pCoder->coder.numDataUnits; - int numParityUnits = pCoder->coder.numDataUnits; + int numParityUnits = pCoder->coder.numParityUnits; int numAllUnits = pCoder->coder.numAllUnits; - printf("Encoding (numAlnumParityUnitslUnits = %d, numDataUnits = %d)\n", - numParityUnits, numDataUnits); + printf("Encoding (numAllUnits = %d, numParityUnits = %d, numDataUnits = %d)\n", + numAllUnits, numParityUnits, numDataUnits); printf("\n\nEncodeMatrix:\n"); dumpCodingMatrix((unsigned char*) pCoder->encodeMatrix, @@ -91,7 +91,7 @@ void dumpDecoder(IsalDecoder* pCoder) { printf("InvertMatrix:\n"); dumpCodingMatrix((unsigned char*) pCoder->invertMatrix, - numDataUnits, numDataUnits); + numDataUnits, numAllUnits); printf("DecodeMatrix:\n"); dumpCodingMatrix((unsigned char*) pCoder->decodeMatrix, diff --git a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/isal_load.h b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/isal_load.h index 7cb7a6a95c1..c46a5318fe1 100644 --- a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/isal_load.h +++ b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/erasurecode/isal_load.h @@ -57,7 +57,7 @@ typedef void (*__d_ec_encode_data_update)(int, int, int, int, unsigned char*, #endif #ifdef WINDOWS -// For erasure_code.h +// For gf_util.h typedef unsigned char (__cdecl *__d_gf_mul)(unsigned char, unsigned char); typedef unsigned char (__cdecl *__d_gf_inv)(unsigned char); typedef void (__cdecl *__d_gf_gen_rs_matrix)(unsigned char *, int, int);