summaryrefslogtreecommitdiff
blob: 85b3ec907b553027b8ab31809b8cedf624b9c97c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
log.c:128: nbytes is defined as a long long int


--- a/log.c
+++ b/log.c
@@ -1503,14 +1503,14 @@
 				}
 			}
 
-			if (fprintf(ufile->file, "%s\t%s\t%s\t%s\t%"PRIi64"\t%s\t%ld\t%s\n",dia,hora,ip,url,nbytes,code,elap_time,smartfilter)<=0) {
+			if (fprintf(ufile->file, "%s\t%s\t%s\t%s\t%lld\t%s\t%ld\t%s\n",dia,hora,ip,url,nbytes,code,elap_time,smartfilter)<=0) {
 				debuga(_("Write error in the log file of user %s\n"),user);
 				exit(EXIT_FAILURE);
 			}
 			records_kept++;
 
 			if(fp_log && ilf!=ILF_Sarg)
-				fprintf(fp_log, "%s\t%s\t%s\t%s\t%s\t%"PRIi64"\t%s\t%ld\t%s\n",dia,hora,user,ip,url,nbytes,code,elap_time,smartfilter);
+				fprintf(fp_log, "%s\t%s\t%s\t%s\t%s\t%lld\t%s\t%ld\t%s\n",dia,hora,user,ip,url,nbytes,code,elap_time,smartfilter);
 
 			totregsg++;
 
@@ -1561,7 +1561,7 @@
 				printf("FUNC=\t%s\n",fun);
 				printf("URL=\t%s\n",url);
 				printf("CODE=\t%s\n",code);
-				printf("LEN=\t%"PRIi64"\n",nbytes);
+				printf("LEN=\t%lld\n",nbytes);
 			}
 		}
 		if (!from_stdin) {