use warn() properly.

This commit is contained in:
mrg 1998-02-03 09:13:49 +00:00
parent ec98cfce8a
commit 3d7b0bedb6

View File

@ -1,4 +1,4 @@
/* $NetBSD: ccdconfig.c,v 1.18 1997/12/30 05:58:06 mycroft Exp $ */ /* $NetBSD: ccdconfig.c,v 1.19 1998/02/03 09:13:49 mrg Exp $ */
/*- /*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc. * Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@ -41,7 +41,7 @@
__COPYRIGHT( __COPYRIGHT(
"@(#) Copyright (c) 1996, 1997\ "@(#) Copyright (c) 1996, 1997\
The NetBSD Foundation, Inc. All rights reserved."); The NetBSD Foundation, Inc. All rights reserved.");
__RCSID("$NetBSD: ccdconfig.c,v 1.18 1997/12/30 05:58:06 mycroft Exp $"); __RCSID("$NetBSD: ccdconfig.c,v 1.19 1998/02/03 09:13:49 mrg Exp $");
#endif #endif
#include <sys/param.h> #include <sys/param.h>
@ -581,7 +581,7 @@ dump_ccd(argc, argv, action)
continue; continue;
} }
if ((error = pathtounit(ccd, &i)) != 0) { if ((error = pathtounit(ccd, &i)) != 0) {
warnx("%s: %s", ccd, strerror(error)); warn("%s", ccd);
continue; continue;
} }
if (i >= numccd) { if (i >= numccd) {