示例#1
0
static void
fd_transfer_error_handler(const struct afdt_error_t* err, void* /*userdata*/) {
  Logger::Error("AFDT ERROR: phase=%s operation=%s "
                "message=\"%s\" errno=\"%s\"",
                afdt_phase_str(err->phase),
                afdt_operation_str(err->operation),
                err->message,
                folly::errnoStr(errno).c_str());
}
static void fd_transfer_error_hander(
    const struct afdt_error_t* err,
    void* userdata) {
  (void)userdata;
  Logger::Error(
      "AFDT ERROR: phase=%s operation=%s "
      "message=\"%s\" errno=\"%s\"",
      afdt_phase_str(err->phase),
      afdt_operation_str(err->operation),
      err->message,
      Util::safe_strerror(errno).c_str());
}