jer         14/04/01 11:48:37

  Added:                sarg-2.3.8-long-long-int.patch
  Log:
  Version bump (bug #506334 by Nikoli).
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
A792A613)

Revision  Changes    Path
1.1                  net-analyzer/sarg/files/sarg-2.3.8-long-long-int.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sarg/files/sarg-2.3.8-long-long-int.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/sarg/files/sarg-2.3.8-long-long-int.patch?rev=1.1&content-type=text/plain

Index: sarg-2.3.8-long-long-int.patch
===================================================================
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) {




Reply via email to