]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
erasure-code: print warnings using dout(10)
authorKefu Chai <kchai@redhat.com>
Sun, 20 Dec 2020 03:39:49 +0000 (11:39 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 20 Dec 2020 05:13:21 +0000 (13:13 +0800)
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 <kchai@redhat.com>
src/erasure-code/shec/ErasureCodeShec.cc

index 9ec8dcc47c5ca4d3c277160c42f54b7d1aaf4396..03a1d23f9a9cb0149ae877599eb677666eb1c369 100644 (file)
@@ -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;
   }