From 9babafd7370fdff1c0fe5b34dbf84450165b7604 Mon Sep 17 00:00:00 2001 From: enami Date: Mon, 29 Sep 1997 05:44:19 +0000 Subject: [PATCH] In the function config(), - Use `dev' instead of `rdev' to warn, since latter may not initialized. - Don't use device file name as a format of warn(). Instead, pass "%s" explicitly. --- usr.sbin/vnconfig/vnconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/vnconfig/vnconfig.c b/usr.sbin/vnconfig/vnconfig.c index 8b14df2fbabb..7644525a0aac 100644 --- a/usr.sbin/vnconfig/vnconfig.c +++ b/usr.sbin/vnconfig/vnconfig.c @@ -1,4 +1,4 @@ -/* $NetBSD: vnconfig.c,v 1.12 1997/09/29 05:24:25 enami Exp $ */ +/* $NetBSD: vnconfig.c,v 1.13 1997/09/29 05:44:19 enami Exp $ */ /*- * Copyright (c) 1997 The NetBSD Foundation, Inc. @@ -164,7 +164,7 @@ config(dev, file, geom, action) fd = opendisk(dev, O_RDWR, rdev, sizeof(rdev), 0); if (fd < 0) { - warn(rdev); + warn("%s", dev); return (1); }