57{
58 int len, n = badOffs.size();
59
60
61
62 if (n)
63 {char buff[128];
64 snprintf(buff, sizeof(buff), "Warning! %d checksum error(s) in", n);
65 eLog.
Emsg(
"PgwFob", buff, fileP->FileKey);
66 }
67
68
69
71 {const char *TraceID = "FileFob", *fname = fileP->FileKey;
72 if (n)
73 {XrdOucString lolist((1+4+1+13)*n);
74 char item[128];
76
77 for (std::set<kXR_int64>::iterator it = badOffs.begin();
78 it != badOffs.end(); ++it)
79 {val = *it;
83 snprintf(item, sizeof(item), " %d@%lld", len, val);
84 lolist += item;
85 }
86 TRACEI(PGCS,fname<<
" had "<<numErrs<<
" cksum errs and "<<numFixd
87 <<" fixes"<<"; areas in error:"<<lolist.c_str());
88 } else if (numErrs)
89 {
TRACEI(PGCS,fname<<
" had "<<numErrs<<
" cksum errs and "
90 <<numFixd<<" fixes.");
91 }
92 }
93}
int Emsg(const char *esfx, int ecode, const char *text1, const char *text2=0)
static const int kXR_pgPageSZ
static const int kXR_pgPageBL