Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/dm dm: Fix typos in comments/messages



details:   https://anonhg.NetBSD.org/src/rev/62d6f366d73e
branches:  trunk
changeset: 465891:62d6f366d73e
user:      tkusumi <tkusumi%NetBSD.org@localhost>
date:      Fri Dec 06 16:33:47 2019 +0000

description:
dm: Fix typos in comments/messages

taken-from: DragonFlyBSD

diffstat:

 sys/dev/dm/device-mapper.c    |  8 ++++----
 sys/dev/dm/dm_ioctl.c         |  8 ++++----
 sys/dev/dm/dm_target_stripe.c |  8 ++++----
 3 files changed, 12 insertions(+), 12 deletions(-)

diffs (93 lines):

diff -r 587ab8590b96 -r 62d6f366d73e sys/dev/dm/device-mapper.c
--- a/sys/dev/dm/device-mapper.c        Fri Dec 06 16:19:32 2019 +0000
+++ b/sys/dev/dm/device-mapper.c        Fri Dec 06 16:33:47 2019 +0000
@@ -1,4 +1,4 @@
-/*        $NetBSD: device-mapper.c,v 1.45 2019/12/05 15:52:39 tkusumi Exp $ */
+/*        $NetBSD: device-mapper.c,v 1.46 2019/12/06 16:33:47 tkusumi Exp $ */
 
 /*
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -428,7 +428,7 @@
 
        switch(cmd) {
        case NETBSD_DM_IOCTL:
-               aprint_debug("dm NetBSD_DM_IOCTL called\n");
+               aprint_debug("dm NETBSD_DM_IOCTL called\n");
                break;
        default:
                 aprint_debug("dm unknown ioctl called\n");
@@ -637,9 +637,9 @@
                    PRIu64"\n", buf_start, buf_len);
                aprint_debug("start-buf_start %010"PRIu64", end %010"
                    PRIu64"\n", start - buf_start, end);
-               aprint_debug("start %010" PRIu64" , end %010"
+               aprint_debug("start %010" PRIu64", end %010"
                     PRIu64"\n", start, end);
-               aprint_debug("\n----------------------------------------\n");
+               aprint_debug("----------------------------------------\n");
 
                if (start < end) {
                        /* create nested buffer  */
diff -r 587ab8590b96 -r 62d6f366d73e sys/dev/dm/dm_ioctl.c
--- a/sys/dev/dm/dm_ioctl.c     Fri Dec 06 16:19:32 2019 +0000
+++ b/sys/dev/dm/dm_ioctl.c     Fri Dec 06 16:33:47 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_ioctl.c,v 1.38 2019/12/05 15:52:39 tkusumi Exp $      */
+/* $NetBSD: dm_ioctl.c,v 1.39 2019/12/06 16:33:47 tkusumi Exp $      */
 
 /*
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dm_ioctl.c,v 1.38 2019/12/05 15:52:39 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dm_ioctl.c,v 1.39 2019/12/06 16:33:47 tkusumi Exp $");
 
 /*
  * Locking is used to synchronise between ioctl calls and between dm_table's
@@ -131,10 +131,10 @@
                aprint_debug("dbg_flags: DM_READONLY_FLAG set In/Out\n");
 
        if (flags & DM_SUSPEND_FLAG)
-               aprint_debug("dbg_flags: DM_SUSPEND_FLAG set In/Out \n");
+               aprint_debug("dbg_flags: DM_SUSPEND_FLAG set In/Out\n");
 
        if (flags & DM_PERSISTENT_DEV_FLAG)
-               aprint_debug("db_flags: DM_PERSISTENT_DEV_FLAG set In\n");
+               aprint_debug("dbg_flags: DM_PERSISTENT_DEV_FLAG set In\n");
 
        if (flags & DM_STATUS_TABLE_FLAG)
                aprint_debug("dbg_flags: DM_STATUS_TABLE_FLAG set In\n");
diff -r 587ab8590b96 -r 62d6f366d73e sys/dev/dm/dm_target_stripe.c
--- a/sys/dev/dm/dm_target_stripe.c     Fri Dec 06 16:19:32 2019 +0000
+++ b/sys/dev/dm/dm_target_stripe.c     Fri Dec 06 16:33:47 2019 +0000
@@ -1,4 +1,4 @@
-/*$NetBSD: dm_target_stripe.c,v 1.28 2019/12/06 16:11:59 tkusumi Exp $*/
+/*$NetBSD: dm_target_stripe.c,v 1.29 2019/12/06 16:33:47 tkusumi Exp $*/
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dm_target_stripe.c,v 1.28 2019/12/06 16:11:59 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dm_target_stripe.c,v 1.29 2019/12/06 16:33:47 tkusumi Exp $");
 
 /*
  * This file implements initial version of device-mapper stripe target.
@@ -241,11 +241,11 @@
        blkoff = 0;
        num_blks = bp->b_resid / DEV_BSIZE;
        for (;;) {
-               /* blockno to strip piece nr */
+               /* blockno to stripe piece nr */
                stripe = blkno / tsc->stripe_chunksize;
                stripe_off = blkno % tsc->stripe_chunksize;
 
-               /* where we are inside the strip */
+               /* where we are inside the stripe */
                stripe_devnr = stripe % tsc->stripe_num;
                stripe_blknr = stripe / tsc->stripe_num;
 



Home | Main Index | Thread Index | Old Index