comparison include/freeDiameter/libfdproto.h @ 1243:7c5f662c4eef

Shortened log timestamp format when DEBUG_WITHOUT_META is defined
author Sebastien Decugis <sdecugis@freediameter.net>
date Mon, 11 Nov 2013 14:55:10 +0800
parents b25ca6134bdc
children c9a160b815ea
comparison
equal deleted inserted replaced
1242:b25ca6134bdc 1243:7c5f662c4eef
180 * 180 *
181 * PARAMETERS: 181 * PARAMETERS:
182 * ts : The timestamp to log, or NULL for "now" 182 * ts : The timestamp to log, or NULL for "now"
183 * buf : An array where the time must be stored 183 * buf : An array where the time must be stored
184 * len : size of the buffer 184 * len : size of the buffer
185 * incl_date : The day of year is included in the output
186 * incl_ms : millisecond value is included in the output
185 * 187 *
186 * DESCRIPTION: 188 * DESCRIPTION:
187 * Writes the timestamp (in human readable format) in a buffer. 189 * Writes the timestamp (in human readable format) in a buffer.
188 * 190 *
189 * RETURN VALUE: 191 * RETURN VALUE:
190 * pointer to buf. 192 * pointer to buf.
191 */ 193 */
192 char * fd_log_time ( struct timespec * ts, char * buf, size_t len ); 194 char * fd_log_time ( struct timespec * ts, char * buf, size_t len, int incl_date, int incl_ms );
193 195
194 /* 196 /*
195 * FUNCTION: fd_log_handler_register 197 * FUNCTION: fd_log_handler_register
196 * MACRO: 198 * MACRO:
197 * 199 *
"Welcome to our mercurial repository"