From ea18a51d7787db805ff83cc281155b1afbf02e07 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 20 Dec 2020 11:39:49 +0800 Subject: [PATCH] erasure-code: print warnings using dout(10) stderr is closed once the process is daemonized, while `derr` is for fatal error or logic error in program. dout(10) is more appropriate in this case, as it is an expected error from callee's perspective. Signed-off-by: Kefu Chai --- src/erasure-code/shec/ErasureCodeShec.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/erasure-code/shec/ErasureCodeShec.cc b/src/erasure-code/shec/ErasureCodeShec.cc index 9ec8dcc47c5..03a1d23f9a9 100644 --- a/src/erasure-code/shec/ErasureCodeShec.cc +++ b/src/erasure-code/shec/ErasureCodeShec.cc @@ -693,7 +693,7 @@ int ErasureCodeShec::shec_make_decoding_matrix(bool prepare, int *want_, int *av if (mindup == k+1) { - fprintf(stderr, "shec_make_decoding_matrix(): can't find recover matrix.\n"); + dout(10) << __func__ << ": can't find recover matrix." << dendl; return -1; } -- 2.39.5