Source-Changes-HG archive

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

[src/trunk]: src fix various typos, mainly in comments.



details:   https://anonhg.NetBSD.org/src/rev/b02dd69b9dcc
branches:  trunk
changeset: 1027150:b02dd69b9dcc
user:      andvar <andvar%NetBSD.org@localhost>
date:      Tue Dec 07 21:37:36 2021 +0000

description:
fix various typos, mainly in comments.

diffstat:

 UPDATING                        |   4 ++--
 sys/arch/aarch64/aarch64/pmap.c |   6 +++---
 sys/arch/m68k/fpsp/res_func.sa  |   4 ++--
 sys/dev/acpi/vald_acpi.c        |   6 +++---
 sys/dev/nand/hamming.c          |   6 +++---
 sys/ufs/chfs/chfs.h             |   6 +++---
 sys/ufs/chfs/chfs_malloc.c      |  10 +++++-----
 sys/ufs/chfs/chfs_nodeops.c     |   4 ++--
 sys/ufs/chfs/chfs_vnops.c       |   4 ++--
 sys/ufs/chfs/chfs_write.c       |   4 ++--
 sys/ufs/chfs/ebh.c              |  28 ++++++++++++++--------------
 usr.bin/mail/list.c             |   6 +++---
 12 files changed, 44 insertions(+), 44 deletions(-)

diffs (truncated from 395 to 300 lines):

diff -r ec5641483ffe -r b02dd69b9dcc UPDATING
--- a/UPDATING  Tue Dec 07 21:30:11 2021 +0000
+++ b/UPDATING  Tue Dec 07 21:37:36 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: UPDATING,v 1.325 2021/11/22 12:30:34 martin Exp $
+$NetBSD: UPDATING,v 1.326 2021/12/07 21:37:36 andvar Exp $
 
 This file (UPDATING) is intended to be a brief reference to recent
 changes that might cause problems in the build process, and a guide for
@@ -192,7 +192,7 @@
 20190723:
        The jemalloc allocator in libc is now build without extended
        debugging (for performance reasons). In update builds make sure
-       to rebuild it completly, by removing all affected object files,
+       to rebuild it completely, by removing all affected object files,
        including compat builds, something like:
        cd /usr/obj && find . -type d -name jemalloc|xargs rm -rf
 
diff -r ec5641483ffe -r b02dd69b9dcc sys/arch/aarch64/aarch64/pmap.c
--- a/sys/arch/aarch64/aarch64/pmap.c   Tue Dec 07 21:30:11 2021 +0000
+++ b/sys/arch/aarch64/aarch64/pmap.c   Tue Dec 07 21:37:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.119 2021/10/23 06:49:46 skrll Exp $ */
+/*     $NetBSD: pmap.c,v 1.120 2021/12/07 21:37:36 andvar Exp $        */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.119 2021/10/23 06:49:46 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.120 2021/12/07 21:37:36 andvar Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_ddb.h"
@@ -179,7 +179,7 @@
 
 /*
  * require access permission in pte to invalidate instruction cache.
- * change the pte to accessible temporarly before cpu_icache_sync_range().
+ * change the pte to be accessible temporarily before cpu_icache_sync_range().
  * this macro modifies PTE (*ptep). need to update PTE after this.
  */
 #define PTE_ICACHE_SYNC_PAGE(pte, ptep, asid, va, ll)                  \
diff -r ec5641483ffe -r b02dd69b9dcc sys/arch/m68k/fpsp/res_func.sa
--- a/sys/arch/m68k/fpsp/res_func.sa    Tue Dec 07 21:30:11 2021 +0000
+++ b/sys/arch/m68k/fpsp/res_func.sa    Tue Dec 07 21:37:36 2021 +0000
@@ -1,4 +1,4 @@
-*      $NetBSD: res_func.sa,v 1.5 2001/09/16 16:34:32 wiz Exp $
+*      $NetBSD: res_func.sa,v 1.6 2021/12/07 21:37:36 andvar Exp $
 
 *      MOTOROLA MICROPROCESSOR & MEMORY TECHNOLOGY GROUP
 *      M68000 Hi-Performance Microprocessor Division
@@ -438,7 +438,7 @@
 
 *
 * cu_dnrm handles all cu-only instructions (fmove, fabs, fneg, and
-* ftst) completly in software without an frestore to the 040. 
+* ftst) completely in software without an frestore to the 040. 
 *
 cu_dnrm:
        st.b    CU_ONLY(a6)
diff -r ec5641483ffe -r b02dd69b9dcc sys/dev/acpi/vald_acpi.c
--- a/sys/dev/acpi/vald_acpi.c  Tue Dec 07 21:30:11 2021 +0000
+++ b/sys/dev/acpi/vald_acpi.c  Tue Dec 07 21:37:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vald_acpi.c,v 1.7 2021/11/01 21:28:03 andvar Exp $ */
+/*     $NetBSD: vald_acpi.c,v 1.8 2021/12/07 21:37:36 andvar Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vald_acpi.c,v 1.7 2021/11/01 21:28:03 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vald_acpi.c,v 1.8 2021/12/07 21:37:36 andvar Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -439,7 +439,7 @@
        sc->lcd_handle = handle;
        param = buf.Pointer;
        if (param->Type == ACPI_TYPE_PACKAGE) {
-               printf("_BCL retrun: %d packages\n", param->Package.Count);
+               printf("_BCL return: %d packages\n", param->Package.Count);
 
                sc->lcd_num = param->Package.Count;
                sc->lcd_level = ACPI_ALLOCATE(sizeof(int) * sc->lcd_num);
diff -r ec5641483ffe -r b02dd69b9dcc sys/dev/nand/hamming.c
--- a/sys/dev/nand/hamming.c    Tue Dec 07 21:30:11 2021 +0000
+++ b/sys/dev/nand/hamming.c    Tue Dec 07 21:37:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hamming.c,v 1.1 2011/02/26 18:07:31 ahoka Exp $        */
+/*     $NetBSD: hamming.c,v 1.2 2021/12/07 21:37:37 andvar Exp $       */
 
 /*
  * Copyright (c) 2008, Atmel Corporation
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hamming.c,v 1.1 2011/02/26 18:07:31 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hamming.c,v 1.2 2021/12/07 21:37:37 andvar Exp $");
 
 #include <sys/param.h>
 #include <lib/libkern/libkern.h>
@@ -102,7 +102,7 @@
 
        /*- 
         * At this point, we have the line parities, and the column sum.
-        * First, We must caculate the parity group values on the column sum.
+        * First, We must calculate the parity group values on the column sum.
         */
        for (i = 0; i < 8; i++) {
                if (column_sum & 1) {
diff -r ec5641483ffe -r b02dd69b9dcc sys/ufs/chfs/chfs.h
--- a/sys/ufs/chfs/chfs.h       Tue Dec 07 21:30:11 2021 +0000
+++ b/sys/ufs/chfs/chfs.h       Tue Dec 07 21:37:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chfs.h,v 1.10 2018/04/19 21:50:10 christos Exp $       */
+/*     $NetBSD: chfs.h,v 1.11 2021/12/07 21:37:37 andvar Exp $ */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -199,7 +199,7 @@
        uint8_t  name[0];                               /* name of the directory */
 };
 
-/* struct chfs_tmp_dnode - used temporarly while building a data node */
+/* struct chfs_tmp_dnode - used temporarily while building a data node */
 struct chfs_tmp_dnode {
        struct chfs_full_dnode *node;   /* associated full dnode */
        uint64_t version;                               /* version of the tmp node */
@@ -376,7 +376,7 @@
 
        /*
         * eraseblock queues
-        * free: completly free
+        * free: completely free
         * clean: contains only valid data
         * dirty: contains valid and deleted data
         * very_dirty: contains mostly deleted data (should be GC'd)
diff -r ec5641483ffe -r b02dd69b9dcc sys/ufs/chfs/chfs_malloc.c
--- a/sys/ufs/chfs/chfs_malloc.c        Tue Dec 07 21:30:11 2021 +0000
+++ b/sys/ufs/chfs/chfs_malloc.c        Tue Dec 07 21:37:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chfs_malloc.c,v 1.6 2019/06/17 17:14:56 ryoon Exp $    */
+/*     $NetBSD: chfs_malloc.c,v 1.7 2021/12/07 21:37:37 andvar Exp $   */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -373,7 +373,7 @@
        pool_cache_put(chfs_node_frag_cache, frag);
 }
 
-/* chfs_alloc_tmp_dnode - allocating a temporarly used dnode */
+/* chfs_alloc_tmp_dnode - allocating a temporarily used dnode */
 struct chfs_tmp_dnode *
 chfs_alloc_tmp_dnode(void)
 {
@@ -383,14 +383,14 @@
        return ret;
 }
 
-/* chfs_free_tmp_dnode - freeing a temporarly used dnode */
+/* chfs_free_tmp_dnode - freeing a temporarily used dnode */
 void
 chfs_free_tmp_dnode(struct chfs_tmp_dnode *td)
 {
        pool_cache_put(chfs_tmp_dnode_cache, td);
 }
 
-/* chfs_alloc_tmp_dnode_info - allocating a temporarly used dnode descriptor */
+/* chfs_alloc_tmp_dnode_info - allocating a temporarily used dnode descriptor */
 struct chfs_tmp_dnode_info *
 chfs_alloc_tmp_dnode_info(void)
 {
@@ -400,7 +400,7 @@
        return ret;
 }
 
-/* chfs_free_tmp_dnode_info - freeing a temporarly used dnode descriptor */
+/* chfs_free_tmp_dnode_info - freeing a temporarily used dnode descriptor */
 void
 chfs_free_tmp_dnode_info(struct chfs_tmp_dnode_info *di)
 {
diff -r ec5641483ffe -r b02dd69b9dcc sys/ufs/chfs/chfs_nodeops.c
--- a/sys/ufs/chfs/chfs_nodeops.c       Tue Dec 07 21:30:11 2021 +0000
+++ b/sys/ufs/chfs/chfs_nodeops.c       Tue Dec 07 21:37:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chfs_nodeops.c,v 1.4 2013/12/09 09:35:17 wiz Exp $     */
+/*     $NetBSD: chfs_nodeops.c,v 1.5 2021/12/07 21:37:37 andvar Exp $  */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -206,7 +206,7 @@
                        return;
                }
        }
-       /* if we couldnt fit it elsewhere, lets add to the end */
+       /* if we couldn't fit it elsewhere, lets add to the end */
        /* FIXME insert tail or insert head? */
        TAILQ_INSERT_HEAD(&parent->dents, new, fds);
 }
diff -r ec5641483ffe -r b02dd69b9dcc sys/ufs/chfs/chfs_vnops.c
--- a/sys/ufs/chfs/chfs_vnops.c Tue Dec 07 21:30:11 2021 +0000
+++ b/sys/ufs/chfs/chfs_vnops.c Tue Dec 07 21:37:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chfs_vnops.c,v 1.46 2021/10/20 03:08:19 thorpej Exp $  */
+/*     $NetBSD: chfs_vnops.c,v 1.47 2021/12/07 21:37:37 andvar Exp $   */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -158,7 +158,7 @@
        }
        /* Store the result of this lookup in the cache.  Avoid this if the
         * request was for creation, as it does not improve timings on
-        * emprical tests. */
+        * empirical tests. */
        if (cnp->cn_nameiop != CREATE && (cnp->cn_flags & ISDOTDOT) == 0) {
                cache_enter(dvp, *vpp, cnp->cn_nameptr, cnp->cn_namelen,
                            cnp->cn_flags);
diff -r ec5641483ffe -r b02dd69b9dcc sys/ufs/chfs/chfs_write.c
--- a/sys/ufs/chfs/chfs_write.c Tue Dec 07 21:30:11 2021 +0000
+++ b/sys/ufs/chfs/chfs_write.c Tue Dec 07 21:37:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chfs_write.c,v 1.6 2021/07/19 21:04:39 andvar Exp $    */
+/*     $NetBSD: chfs_write.c,v 1.7 2021/12/07 21:37:37 andvar Exp $    */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -110,7 +110,7 @@
 
        mutex_enter(&chmp->chm_lock_sizes);
 
-       /* caculating offset and sizes  */
+       /* calculating offset and sizes  */
        nref->nref_offset = chmp->chm_ebh->eb_size - chmp->chm_nextblock->free_size;
        chfs_change_size_free(chmp, chmp->chm_nextblock, -CHFS_PAD(size));
        vec.iov_base = fvnode;
diff -r ec5641483ffe -r b02dd69b9dcc sys/ufs/chfs/ebh.c
--- a/sys/ufs/chfs/ebh.c        Tue Dec 07 21:30:11 2021 +0000
+++ b/sys/ufs/chfs/ebh.c        Tue Dec 07 21:37:36 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ebh.c,v 1.8 2021/08/09 21:38:05 andvar Exp $   */
+/*     $NetBSD: ebh.c,v 1.9 2021/12/07 21:37:37 andvar Exp $   */
 
 /*-
  * Copyright (c) 2010 Department of Software Engineering,
@@ -129,7 +129,7 @@
 }
 
 /**
- * nor_read_eb_hdr - read ereaseblock header from NOR flash
+ * nor_read_eb_hdr - read eraseblock header from NOR flash
  *
  * @ebh: chfs eraseblock handler
  * @pebnr: eraseblock number
@@ -167,7 +167,7 @@
 }
 
 /**
- * nand_read_eb_hdr - read ereaseblock header from NAND flash
+ * nand_read_eb_hdr - read eraseblock header from NAND flash
  *
  * @ebh: chfs eraseblock handler
  * @pebnr: eraseblock number
@@ -206,7 +206,7 @@
 }
 
 /**
- * nor_write_eb_hdr - write ereaseblock header to NOR flash
+ * nor_write_eb_hdr - write eraseblock header to NOR flash
  *
  * @ebh: chfs eraseblock handler
  * @pebnr: eraseblock number whereto write
@@ -243,7 +243,7 @@
 }
 
 /**
- * nand_write_eb_hdr - write ereaseblock header to NAND flash
+ * nand_write_eb_hdr - write eraseblock header to NAND flash
  *
  * @ebh: chfs eraseblock handler
  * @pebnr: eraseblock number whereto write
@@ -282,7 +282,7 @@
 }
 
 /**
- * nor_check_eb_hdr - check ereaseblock header read from NOR flash
+ * nor_check_eb_hdr - check eraseblock header read from NOR flash
  *
  * @ebh: chfs eraseblock handler
  * @buf: eraseblock header to check
@@ -361,7 +361,7 @@
 }
 
 /**



Home | Main Index | Thread Index | Old Index