From b87950a9f6c69d535a89eb0b2742098a973d9929 Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 21 Aug 2006 09:05:22 +0000 Subject: [PATCH] Use %zu for size_t --- sys/kern/subr_vmem.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/subr_vmem.c b/sys/kern/subr_vmem.c index 5f7885904275..039bf3a06527 100644 --- a/sys/kern/subr_vmem.c +++ b/sys/kern/subr_vmem.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr_vmem.c,v 1.7 2006/08/20 13:14:03 yamt Exp $ */ +/* $NetBSD: subr_vmem.c,v 1.8 2006/08/21 09:05:22 martin Exp $ */ /*- * Copyright (c)2006 YAMAMOTO Takashi, @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: subr_vmem.c,v 1.7 2006/08/20 13:14:03 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: subr_vmem.c,v 1.8 2006/08/21 09:05:22 martin Exp $"); #define VMEM_DEBUG #if defined(_KERNEL) @@ -471,7 +471,7 @@ qc_init(vmem_t *vm, size_t qcache_max) size_t size = i << vm->vm_quantum_shift; qc->qc_vmem = vm; - snprintf(qc->qc_name, sizeof(qc->qc_name), "%s-%d", + snprintf(qc->qc_name, sizeof(qc->qc_name), "%s-%zu", vm->vm_name, size); pool_init(&qc->qc_pool, size, 0, 0, PR_NOALIGN | PR_NOTOUCH /* XXX */, qc->qc_name, pa);