Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ieee1394 Only dump the rom up to ab_retlen in error ...
details: https://anonhg.NetBSD.org/src/rev/80059c4bbe00
branches: trunk
changeset: 524978:80059c4bbe00
user: jmc <jmc%NetBSD.org@localhost>
date: Wed Apr 03 04:15:59 2002 +0000
description:
Only dump the rom up to ab_retlen in error cases. Also add in
P1212_ALLOW_VENDOR_DIRECTORY_TYPE to the flags passed to the p1212 parser
diffstat:
sys/dev/ieee1394/fwnode.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r f46bd25da8f3 -r 80059c4bbe00 sys/dev/ieee1394/fwnode.c
--- a/sys/dev/ieee1394/fwnode.c Wed Apr 03 04:05:05 2002 +0000
+++ b/sys/dev/ieee1394/fwnode.c Wed Apr 03 04:15:59 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fwnode.c,v 1.12 2002/03/29 05:05:40 jmc Exp $ */
+/* $NetBSD: fwnode.c,v 1.13 2002/04/03 04:15:59 jmc Exp $ */
/*
* Copyright (c) 2001,2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fwnode.c,v 1.12 2002/03/29 05:05:40 jmc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fwnode.c,v 1.13 2002/04/03 04:15:59 jmc Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -167,7 +167,7 @@
if (rcode != IEEE1394_RCODE_COMPLETE) {
DPRINTF(("Aborting configrom input, rcode: %d\n", rcode));
#ifdef FWNODE_DEBUG
- fwnode_dump_rom(sc, ab->ab_data, ab->ab_length);
+ fwnode_dump_rom(sc, ab->ab_data, ab->ab_retlen);
#endif
free(ab->ab_data, M_1394DATA);
free(ab, M_1394DATA);
@@ -235,6 +235,7 @@
val = P1212_ALLOW_DEPENDENT_INFO_OFFSET_TYPE;
val |= P1212_ALLOW_DEPENDENT_INFO_IMMED_TYPE;
+ val |= P1212_ALLOW_VENDOR_DIRECTORY_TYPE;
sc->sc_configrom =
p1212_parse(sc->sc_sc1394.sc1394_configrom,
sc->sc_sc1394.sc1394_configrom_len, val);
Home |
Main Index |
Thread Index |
Old Index