Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/raidframe if raidframe sets booted_device, log a deb...



details:   https://anonhg.NetBSD.org/src/rev/1ecfa9468ad5
branches:  trunk
changeset: 982785:1ecfa9468ad5
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Apr 26 07:27:24 2021 +0000

description:
if raidframe sets booted_device, log a debug message about it.

diffstat:

 sys/dev/raidframe/rf_netbsdkintf.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r a1d61cdfaf15 -r 1ecfa9468ad5 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Mon Apr 26 07:18:01 2021 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Mon Apr 26 07:27:24 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_netbsdkintf.c,v 1.391 2021/04/11 01:41:12 mrg Exp $ */
+/*     $NetBSD: rf_netbsdkintf.c,v 1.392 2021/04/26 07:27:24 mrg Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
  ***********************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.391 2021/04/11 01:41:12 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.392 2021/04/26 07:27:24 mrg Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_raid_autoconfig.h"
@@ -581,6 +581,8 @@
                        booted_device = candidate_root;
                        booted_method = "raidframe/single";
                        booted_partition = 0;   /* XXX assume 'a' */
+                       DPRINTF("%s: set booted_device=%s(%p)\n", __func__,
+                           device_xname(booted_device), booted_device);
                }
        } else if (num_root > 1) {
                DPRINTF("%s: many roots=%d, %p\n", __func__, num_root,



Home | Main Index | Thread Index | Old Index