View | Details | Raw Unified | Return to ticket 155
Collapse All | Expand All

(-)a/src/common/log.c (-3 / +3 lines)
Lines 554-560 FILE *log_fp(void) Link Here
554
 * args are like printf, with the addition of the following format chars:
554
 * args are like printf, with the addition of the following format chars:
555
 * - %m expands to strerror(errno)
555
 * - %m expands to strerror(errno)
556
 * - %t expands to strftime("%x %X") [ locally preferred short date/time ]
556
 * - %t expands to strftime("%x %X") [ locally preferred short date/time ]
557
 * - %T expands to rfc822 date time  [ "dd Mon yyyy hh:mm:ss GMT offset" ]
557
 * - %T expands to rfc2822 date time  [ "dd, Mon yyyy hh:mm:ss GMT offset" ]
558
 *
558
 *
559
 * simple format specifiers are handled explicitly to avoid calls to
559
 * simple format specifiers are handled explicitly to avoid calls to
560
 * vsnprintf and allow dynamic sizing of the message buffer. If a call
560
 * vsnprintf and allow dynamic sizing of the message buffer. If a call
Lines 599-606 static char *vxstrfmt(const char *fmt, va_list ap) Link Here
599
			case 't': 	/* "%t" => locally preferred date/time*/
599
			case 't': 	/* "%t" => locally preferred date/time*/
600
				xstrftimecat(buf, "%x %X");
600
				xstrftimecat(buf, "%x %X");
601
				break;
601
				break;
602
			case 'T': 	/* "%T" => "dd Mon yyyy hh:mm:ss off" */
602
			case 'T': 	/* "%T" => "dd, Mon yyyy hh:mm:ss off" */
603
				xstrftimecat(buf, "%a %d %b %Y %H:%M:%S %z");
603
				xstrftimecat(buf, "%a, %d %b %Y %H:%M:%S %z");
604
				break;
604
				break;
605
#if defined USE_USEC_CLOCK
605
#if defined USE_USEC_CLOCK
606
			case 'M':       /* "%M" => "usec"                    */
606
			case 'M':       /* "%M" => "usec"                    */
(-)a/src/common/log.h (-3 / +3 lines)
Lines 133-140 typedef struct { Link Here
133
}
133
}
134
134
135
135
136
#define RFC822_TIMESTAMP(timestamp_buf) \
136
#define RFC2822_TIMESTAMP(timestamp_buf) \
137
	MAKE_TIMESTAMP(timestamp_buf, "%a %d %b %Y %H:%M:%S %z");
137
	MAKE_TIMESTAMP(timestamp_buf, "%a, %d %b %Y %H:%M:%S %z");
138
138
139
#ifdef USE_ISO_8601
139
#ifdef USE_ISO_8601
140
#define LOG_TIMESTAMP(timestamp_buf)			\
140
#define LOG_TIMESTAMP(timestamp_buf)			\
Lines 250-256 void log_flush(void); Link Here
250
 * ~~~~    ~~~~~~~~~~~
250
 * ~~~~    ~~~~~~~~~~~
251
 * "%m" => strerror(errno)
251
 * "%m" => strerror(errno)
252
 * "%t" => strftime "%x %X"  (locally preferred short date/time)
252
 * "%t" => strftime "%x %X"  (locally preferred short date/time)
253
 * "%T" => strftime "%a %d %b %Y %H:%M:%S %z" (rfc822 date/time)
253
 * "%T" => strftime "%a, %d %b %Y %H:%M:%S %z" (rfc2822 date/time)
254
 */
254
 */
255
255
256
/* fatal() aborts program unless NDEBUG defined
256
/* fatal() aborts program unless NDEBUG defined
(-)a/src/slurmd/slurmd/slurmd.c (-1 / +1 lines)
Lines 307-313 main (int argc, char *argv[]) Link Here
307
	if (pidfd >= 0)
307
	if (pidfd >= 0)
308
		fd_set_close_on_exec(pidfd);
308
		fd_set_close_on_exec(pidfd);
309
309
310
	RFC822_TIMESTAMP(time_stamp);
310
	RFC2822_TIMESTAMP(time_stamp);
311
	info("%s started on %s", xbasename(argv[0]), time_stamp);
311
	info("%s started on %s", xbasename(argv[0]), time_stamp);
312
312
313
	_install_fork_handlers();
313
	_install_fork_handlers();

Return to ticket 155