From owner-svn-src-all@FreeBSD.ORG Sun Jul 28 16:56:31 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id ED18DA8E; Sun, 28 Jul 2013 16:56:31 +0000 (UTC) (envelope-from ian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D933421F9; Sun, 28 Jul 2013 16:56:31 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6SGuVaf023460; Sun, 28 Jul 2013 16:56:31 GMT (envelope-from ian@svn.freebsd.org) Received: (from ian@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6SGuVYx023459; Sun, 28 Jul 2013 16:56:31 GMT (envelope-from ian@svn.freebsd.org) Message-Id: <201307281656.r6SGuVYx023459@svn.freebsd.org> From: Ian Lepore Date: Sun, 28 Jul 2013 16:56:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253744 - head/usr.sbin/watchdogd X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jul 2013 16:56:32 -0000 Author: ian Date: Sun Jul 28 16:56:31 2013 New Revision: 253744 URL: http://svnweb.freebsd.org/changeset/base/253744 Log: Fix printf of seconds for systems where time_t is 64 bits. Modified: head/usr.sbin/watchdogd/watchdogd.c Modified: head/usr.sbin/watchdogd/watchdogd.c ============================================================================== --- head/usr.sbin/watchdogd/watchdogd.c Sun Jul 28 16:50:45 2013 (r253743) +++ head/usr.sbin/watchdogd/watchdogd.c Sun Jul 28 16:56:31 2013 (r253744) @@ -50,6 +50,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -230,10 +231,10 @@ parse_timeout_to_pow2ns(char opt, const if (debugging) { printf("Timeout for %s%s " "is 2^%d nanoseconds " - "(in: %s sec -> out: %ld sec %ld ns -> %d ticks)\n", + "(in: %s sec -> out: %jd sec %ld ns -> %d ticks)\n", longopt ? "-" : "", longopt ? longopt : shortopt, rv, - myoptarg, ts.tv_sec, ts.tv_nsec, ticks); + myoptarg, (intmax_t)ts.tv_sec, ts.tv_nsec, ticks); } if (ticks <= 0) { errx(1, "Timeout for %s%s is too small, please choose a higher timeout.", longopt ? "-" : "", longopt ? longopt : shortopt);