View | Details | Raw Unified | Return to bug 71618 | Differences between
and this patch

Collapse All | Expand All

(-)readmsg.c (-5 / +6 lines)
Lines 39-44 Link Here
39
  "$FreeBSD: src/usr.sbin/timed/timed/readmsg.c,v 1.9 2001/11/20 07:13:40 jhb Exp $";
39
  "$FreeBSD: src/usr.sbin/timed/timed/readmsg.c,v 1.9 2001/11/20 07:13:40 jhb Exp $";
40
#endif /* not lint */
40
#endif /* not lint */
41
41
42
#include <stdint.h>
42
#include "globals.h"
43
#include "globals.h"
43
44
44
extern char *tsptype[];
45
extern char *tsptype[];
Lines 186-193 Link Here
186
			rwait.tv_usec = 1000000/CLK_TCK;
187
			rwait.tv_usec = 1000000/CLK_TCK;
187
188
188
		if (trace) {
189
		if (trace) {
189
			fprintf(fd, "readmsg: wait %ld.%6ld at %s\n",
190
			fprintf(fd, "readmsg: wait %lld.%6ld at %s\n",
190
				rwait.tv_sec, rwait.tv_usec, date());
191
			(long long int)rwait.tv_sec, rwait.tv_usec, date());
191
			/* Notice a full disk, as we flush trace info.
192
			/* Notice a full disk, as we flush trace info.
192
			 * It is better to flush periodically than at
193
			 * It is better to flush periodically than at
193
			 * every line because the tracing consists of bursts
194
			 * every line because the tracing consists of bursts
Lines 491-502 Link Here
491
		break;
492
		break;
492
493
493
	case TSP_ADJTIME:
494
	case TSP_ADJTIME:
494
		fprintf(fd, "%s %d %-6u (%ld,%ld) %-15s %s\n",
495
		fprintf(fd, "%s %d %-6u (%jd,%jd) %-15s %s\n",
495
			tsptype[msg->tsp_type],
496
			tsptype[msg->tsp_type],
496
			msg->tsp_vers,
497
			msg->tsp_vers,
497
			msg->tsp_seq,
498
			msg->tsp_seq,
498
			msg->tsp_time.tv_sec,
499
			(intmax_t)msg->tsp_time.tv_sec,
499
			msg->tsp_time.tv_usec,
500
			(intmax_t)msg->tsp_time.tv_usec,
500
			inet_ntoa(addr->sin_addr),
501
			inet_ntoa(addr->sin_addr),
501
			msg->tsp_name);
502
			msg->tsp_name);
502
		break;
503
		break;

Return to bug 71618