Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/chio Report vendor-specific data length, if any.



details:   https://anonhg.NetBSD.org/src/rev/0797a8403e08
branches:  trunk
changeset: 476219:0797a8403e08
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Sep 09 23:32:10 1999 +0000

description:
Report vendor-specific data length, if any.

diffstat:

 bin/chio/chio.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 5f13b5292545 -r 0797a8403e08 bin/chio/chio.c
--- a/bin/chio/chio.c   Thu Sep 09 23:24:29 1999 +0000
+++ b/bin/chio/chio.c   Thu Sep 09 23:32:10 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chio.c,v 1.13 1999/09/09 23:24:29 thorpej Exp $        */
+/*     $NetBSD: chio.c,v 1.14 1999/09/09 23:32:10 thorpej Exp $        */
 
 /*-
  * Copyright (c) 1996, 1998, 1999 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
 __COPYRIGHT(
 "@(#) Copyright (c) 1996, 1998, 1999\
        The NetBSD Foundation, Inc.  All rights reserved.");
-__RCSID("$NetBSD: chio.c,v 1.13 1999/09/09 23:24:29 thorpej Exp $");
+__RCSID("$NetBSD: chio.c,v 1.14 1999/09/09 23:32:10 thorpej Exp $");
 #endif
 
 #include <sys/param.h>
@@ -682,6 +682,9 @@
                                (void) printf("\tFrom: %s %d\n",
                                    elements[ces[i].ces_from_type].et_name,
                                    ces[i].ces_from_unit);
+                       if (ces[i].ces_vendor_len)
+                               (void) printf("\tVendor-specific data size: "
+                                   "%lu\n", (u_long)ces[i].ces_vendor_len);
                }
                free(ces);
        }



Home | Main Index | Thread Index | Old Index