Module Name:    src
Committed By:   mrg
Date:           Mon Apr 26 07:27:25 UTC 2021

Modified Files:
        src/sys/dev/raidframe: rf_netbsdkintf.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.391 -r1.392 src/sys/dev/raidframe/rf_netbsdkintf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/raidframe/rf_netbsdkintf.c
diff -u src/sys/dev/raidframe/rf_netbsdkintf.c:1.391 src/sys/dev/raidframe/rf_netbsdkintf.c:1.392
--- src/sys/dev/raidframe/rf_netbsdkintf.c:1.391	Sun Apr 11 01:41:12 2021
+++ src/sys/dev/raidframe/rf_netbsdkintf.c	Mon Apr 26 07:27:24 2021
@@ -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 @@ rf_buildroothack(RF_ConfigSet_t *config_
 			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,

Reply via email to