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 20bd1893fd..e48032e15e 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 7cb7a6a95c..c46a5318fe 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);