From a5480e24b474be276675a631fe35e4f88f6d4c08 Mon Sep 17 00:00:00 2001 From: rearnsha Date: Mon, 24 Sep 2001 17:00:52 +0000 Subject: [PATCH] Hmm, on a.out platforms we have size_t == unsigned int on elf platforms we have size_t == unsigned long int So use %ld when printing and cast md->md_size to long. --- sys/arch/arm32/dev/md_hooks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm32/dev/md_hooks.c b/sys/arch/arm32/dev/md_hooks.c index 8761348b6f04..de0eac69a53e 100644 --- a/sys/arch/arm32/dev/md_hooks.c +++ b/sys/arch/arm32/dev/md_hooks.c @@ -1,4 +1,4 @@ -/* $NetBSD: md_hooks.c,v 1.18 2001/09/09 15:15:14 reinoud Exp $ */ +/* $NetBSD: md_hooks.c,v 1.19 2001/09/24 17:00:52 rearnsha Exp $ */ /* * Copyright (c) 1995 Gordon W. Ross @@ -83,7 +83,7 @@ md_attach_hook(unit, md) bootmd = md; } #endif /* MINIROOTSIZE */ - printf("md%d: allocated %dK (%d blocks)\n", unit, md->md_size / 1024, md->md_size / DEV_BSIZE); + printf("md%d: allocated %ldK (%ld blocks)\n", unit, (long)md->md_size / 1024, (long)md->md_size / DEV_BSIZE); } }