From d88d5ada3936a7b1509a633bb7057de431cb076b Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 19 Dec 2003 21:27:08 +0000 Subject: Pass -Wformat. --- sys/arch/vax/vax/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/vax/vax/clock.c b/sys/arch/vax/vax/clock.c index f70d3bf70ff..e30e285dd2c 100644 --- a/sys/arch/vax/vax/clock.c +++ b/sys/arch/vax/vax/clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: clock.c,v 1.15 2003/05/11 19:41:12 deraadt Exp $ */ +/* $OpenBSD: clock.c,v 1.16 2003/12/19 21:27:07 miod Exp $ */ /* $NetBSD: clock.c,v 1.35 2000/06/04 06:16:58 matt Exp $ */ /* * Copyright (c) 1995 Ludd, University of Lule}, Sweden. @@ -136,7 +136,7 @@ inittodr(fs_time) if (deltat < 0) deltat = -deltat; if (deltat >= 2 * SEC_PER_DAY) { - printf("Clock has %s %ld days", + printf("Clock has %s %d days", time.tv_sec < fs_time ? "lost" : "gained", deltat / SEC_PER_DAY); rv = CLKREAD_WARN; -- cgit v1.2.3