ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/log.c
(Generate patch)

Comparing:
ircd-hybrid-7.2/src/s_log.c (file contents), Revision 581 by michael, Tue May 2 07:50:39 2006 UTC vs.
ircd-hybrid-7.3/src/s_log.c (file contents), Revision 1029 by michael, Sun Nov 8 13:10:50 2009 UTC

# Line 112 | Line 112 | write_log(const char *message)
112    if (logFile == NULL)
113      return;
114  
115 #ifdef _WIN32
116  nbytes = snprintf(buf, sizeof(buf), "[%s] %s\r\n",
117                    smalldate(CurrentTime), message);
118 #else
115    nbytes = snprintf(buf, sizeof(buf), "[%s] %s\n",
116                      smalldate(CurrentTime), message);
117 < #endif
117 >
118    fbputs(buf, logFile, nbytes);
119   }
120    
# Line 207 | Line 203 | log_user_exit(struct Client *source_p)
203    if (IsClient(source_p))
204    {
205      ilog(L_INFO, "%s (%3u:%02u:%02u): %s!%s@%s %llu/%llu",
206 <         myctime(source_p->firsttime), on_for / 3600,
207 <         (on_for % 3600)/60, on_for % 60,
206 >         myctime(source_p->firsttime), (unsigned int)(on_for / 3600),
207 >         (unsigned int)((on_for % 3600)/60), (unsigned int)(on_for % 60),
208           source_p->name, source_p->username, source_p->host,
209           source_p->localClient->send.bytes>>10,
210           source_p->localClient->recv.bytes>>10);
# Line 240 | Line 236 | log_user_exit(struct Client *source_p)
236          size_t nbytes = ircsprintf(linebuf,
237                     "%s (%3u:%02u:%02u): %s!%s@%s %llu/%llu\n",
238                     myctime(source_p->firsttime),
239 <                   on_for / 3600,
240 <                   (on_for % 3600)/60,
241 <                   on_for % 60,
239 >                   (unsigned int)(on_for / 3600),
240 >                   (unsigned int)((on_for % 3600)/60),
241 >                   (unsigned int)(on_for % 60),
242                     source_p->name, source_p->username, source_p->host,
243                     source_p->localClient->send.bytes>>10,
244                     source_p->localClient->recv.bytes>>10);

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)