From 57f9d3f327a96559e9a97c2199f761e76ebafc77 Mon Sep 17 00:00:00 2001 From: uwe Date: Sat, 8 Nov 2003 22:39:07 +0000 Subject: [PATCH] Don't use PRId64 in a host tool. Not all systems have the PRI* macros (e.g. FreeBSD 4.x). Cast to long long int instead. --- usr.sbin/installboot/arch/hp300.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.sbin/installboot/arch/hp300.c b/usr.sbin/installboot/arch/hp300.c index 0762657a659d..122ca8f76bb2 100644 --- a/usr.sbin/installboot/arch/hp300.c +++ b/usr.sbin/installboot/arch/hp300.c @@ -1,4 +1,4 @@ -/* $NetBSD: hp300.c,v 1.1 2003/11/08 16:44:35 dsl Exp $ */ +/* $NetBSD: hp300.c,v 1.2 2003/11/08 22:39:07 uwe Exp $ */ /*- * Copyright (c) 2003 The NetBSD Foundation, Inc. @@ -42,7 +42,7 @@ #include #if !defined(__lint) -__RCSID("$NetBSD: hp300.c,v 1.1 2003/11/08 16:44:35 dsl Exp $"); +__RCSID("$NetBSD: hp300.c,v 1.2 2003/11/08 22:39:07 uwe Exp $"); #endif /* !__lint */ #include @@ -116,9 +116,9 @@ hp300_setboot(ib_params *params) * it to the LIF filesystem. */ if (boot->p_size * label.d_secsize < params->s1stat.st_size) { - warn("BOOT partition too small (%d < %" PRId64 ")", + warn("BOOT partition too small (%d < %lld)", boot->p_size * label.d_secsize, - params->s1stat.st_size); + (long long int)params->s1stat.st_size); goto done; }