Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/pmax/stand/lib Sync with rev 1.9 of sys/arch/i386/s...
details: https://anonhg.NetBSD.org/src/rev/eecb89283620
branches: trunk
changeset: 471988:eecb89283620
user: simonb <simonb%NetBSD.org@localhost>
date: Sat Apr 17 11:24:16 1999 +0000
description:
Sync with rev 1.9 of sys/arch/i386/stand/lib/loadfile.c:
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/pmax/stand/lib/loadfile.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b3a02613f87f -r eecb89283620 sys/arch/pmax/stand/lib/loadfile.c
--- a/sys/arch/pmax/stand/lib/loadfile.c Sat Apr 17 11:18:36 1999 +0000
+++ b/sys/arch/pmax/stand/lib/loadfile.c Sat Apr 17 11:24:16 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: loadfile.c,v 1.3 1999/04/10 01:52:33 simonb Exp $ */
+/* $NetBSD: loadfile.c,v 1.4 1999/04/17 11:24:16 simonb 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