Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/stand/lib another nit in error handling: don't...
details: https://anonhg.NetBSD.org/src/rev/b3a02613f87f
branches: trunk
changeset: 471987:b3a02613f87f
user: drochner <drochner%NetBSD.org@localhost>
date: Sat Apr 17 11:18:36 1999 +0000
description:
another nit in error handling: don't try to print out a NULL filename
(which means "use default" and is dealt with properly by open())
diffstat:
sys/arch/i386/stand/lib/loadfile.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 402406526b5d -r b3a02613f87f sys/arch/i386/stand/lib/loadfile.c
--- a/sys/arch/i386/stand/lib/loadfile.c Sat Apr 17 11:03:52 1999 +0000
+++ b/sys/arch/i386/stand/lib/loadfile.c Sat Apr 17 11:18:36 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile.c,v 1.8 1999/04/09 20:12:57 drochner Exp $ */
+/* $NetBSD: loadfile.c,v 1.9 1999/04/17 11:18:36 drochner Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
/* Open the file. */
if ((fd = open(fname, 0)) < 0) {
- WARN(("open %s", fname));
+ WARN(("open %s", fname ? fname : "<default>"));
return -1;
}
@@ -162,7 +162,7 @@
{
rval = 1;
errno = EFTYPE;
- WARN(("%s", fname));
+ WARN(("%s", fname ? fname : "<default>"));
}
if (rval == 0) {
Home |
Main Index |
Thread Index |
Old Index