say so when changing rootdev
authorMike Karels <karels@ucbvax.Berkeley.EDU>
Thu, 13 Mar 1986 07:17:00 +0000 (23:17 -0800)
committerMike Karels <karels@ucbvax.Berkeley.EDU>
Thu, 13 Mar 1986 07:17:00 +0000 (23:17 -0800)
SCCS-vsn: sys/vax/vax/autoconf.c 6.19

usr/src/sys/vax/vax/autoconf.c

index aa6ba48..90d19f0 100644 (file)
@@ -3,7 +3,7 @@
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
  * All rights reserved.  The Berkeley software License Agreement
  * specifies the terms and conditions for redistribution.
  *
- *     @(#)autoconf.c  6.18 (Berkeley) %G%
+ *     @(#)autoconf.c  6.19 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
@@ -933,8 +933,6 @@ setroot()
        mindev = (mindev << PARTITIONSHIFT) + part;
        orootdev = rootdev;
        rootdev = makedev(majdev, mindev);
        mindev = (mindev << PARTITIONSHIFT) + part;
        orootdev = rootdev;
        rootdev = makedev(majdev, mindev);
-
-#ifdef DOSWAP
        /*
         * If the original rootdev is the same as the one
         * just calculated, don't need to adjust the swap configuration.
        /*
         * If the original rootdev is the same as the one
         * just calculated, don't need to adjust the swap configuration.
@@ -942,6 +940,10 @@ setroot()
        if (rootdev == orootdev)
                return;
 
        if (rootdev == orootdev)
                return;
 
+       printf("Changing root device to %c%c(%d, %d)\n",
+               devname[majdev][0], devname[majdev][1], majdev, mindev);
+
+#ifdef DOSWAP
        mindev &= ~PARTITIONMASK;
        for (swp = swdevt; swp->sw_dev; swp++) {
                if (majdev == major(swp->sw_dev) &&
        mindev &= ~PARTITIONMASK;
        for (swp = swdevt; swp->sw_dev; swp++) {
                if (majdev == major(swp->sw_dev) &&