fputs("</tr></thead>\n",fp_ou);
if(debug) {
- debuga(_("Making report: %s\n"),uinfo->id);
+ debuga(_("Making report %s\n"),uinfo->id);
}
count=0;
arqip[0]='\0';
if((ReportType & REPORT_TYPE_USERS_SITES) == 0) return(NULL);
if((ReportType & REPORT_TYPE_TOPUSERS) == 0) return(NULL);
- if(debug) debuga(_("Making file: %s/%s\n"),tmp,user);
+ if(debug) debuga(_("Making file %s/%s\n"),tmp,user);
if (snprintf(wdirname,sizeof(wdirname),"%s/%s.utmp",tmp,user)>=sizeof(wdirname)) {
debuga(_("Path too long: "));
debuga_more("%s/%s.utmp\n",tmp,user);
to print a long long int unless it is exactly 64-bits long.
*/
if (fprintf(fp_gen,"%s\t%"PRIu64"\t%"PRIu64"\t%s\t%s\t%s\t%s\t%"PRIu64"\t%"PRIu64"\t%"PRIu64"\n",uinfo->id,(uint64_t)nacc,(uint64_t)nbytes,url,ip,hora,dia,(uint64_t)nelap,(uint64_t)incache,(uint64_t)oucache)<0) {
- debuga(_("Failed to write a line in %s\n"),filename);
+ debuga(_("Write error in file \"%s\": %s\n"),filename,strerror(errno));
exit(EXIT_FAILURE);
}
struct userinfostruct *uinfo;
if(Privacy) {
- if (debugz>=LogLevel_Process) debugaz(_("Sites and users report not generated because privacy option is on\n"));
+ if (debugz>=LogLevel_Process) debugaz(_("Sites & users report not generated because privacy option is on\n"));
return;
}
attrs[1]=NULL;
rc= ldap_search_ext_s(ldap_handle, LDAPBaseSearch, LDAP_SCOPE_SUBTREE, filtersearch, attrs, 0, NULL, NULL, NULL, -1, &result);
if (rc != LDAP_SUCCESS) {
- debuga(_("LDAP search failed: %s\n"), ldap_err2string(rc));
- debuga(_("looking for \"%s\" at or below \"%s\"\n"),filtersearch,LDAPBaseSearch);
+ debuga(_("LDAP search failed: %s\nlooking for \"%s\" at or below \"%s\"\n"), ldap_err2string(rc),filtersearch,LDAPBaseSearch);
safe_strcpy(mappedname,userlogin,namelen);
return;
}