From: Kefu Chai Date: Sun, 20 Dec 2020 03:39:49 +0000 (+0800) Subject: erasure-code: print warnings using dout(10) X-Git-Tag: v16.1.0~173^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ea18a51d7787db805ff83cc281155b1afbf02e07;p=ceph.git 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 --- diff --git a/src/erasure-code/shec/ErasureCodeShec.cc b/src/erasure-code/shec/ErasureCodeShec.cc index 9ec8dcc47c5c..03a1d23f9a9c 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; }