FACT++  1.0
void ConnectionDrive::LogErrorCode ( uint32_t  node)
inlineprivate

Definition at line 953 of file drivectrl.cc.

References Error().

954  {
955  const uint8_t typ = fErrCode[node/2]>>16;
956 
957  ostringstream out;
958  out << "IndraDrive ";
959  out << (node==1?"Az":"Zd");
960  out << " [" << hex << fErrCode[node/2];
961  out << "]: ";
962  out << ErrCodeToString(fErrCode[node/2]);
963  out << (typ==0xf || typ==0xe ? "!" : ".");
964 
965  switch (typ)
966  {
967  case 0xf: Error(out); break;
968  case 0xe: Warn(out); break;
969  case 0xa: Info(out); break;
970  case 0x0:
971  case 0xc:
972  case 0xd: Message(out); break;
973  default: Fatal(out); break;
974  }
975  }
Definition: dns.c:26
int Error(const std::string &str)
Definition: MessageImp.h:49
string ErrCodeToString(uint32_t code) const
Definition: drivectrl.cc:861
int Warn(const std::string &str)
Definition: MessageImp.h:48
int Info(const std::string &str)
Definition: MessageImp.h:47
uint32_t fErrCode[2]
Definition: drivectrl.cc:585
int Message(const std::string &str)
Definition: MessageImp.h:46
int Fatal(const std::string &str)
Definition: MessageImp.h:51

+ Here is the call graph for this function: