From ec11b13a21b2becc1d1bd746a04624d17b26583f Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Mon, 24 Sep 2018 05:25:00 -0700 Subject: [PATCH] Trivial: Cleanup some typos. This is a new commit for code under a different maintainer. Change-Id: I79fa403fec6a312238a9a4b18b35dbcafaa05439 Signed-off-by: Paul Vinciguerra --- src/vat/api_format.c | 6 +++--- src/vpp-api/client/client.c | 2 +- src/vpp/api/api.c | 2 +- src/vpp/api/summary_stats_client.c | 2 +- src/vpp/api/test_client.c | 2 +- src/vpp/api/test_ha.c | 2 +- src/vpp/api/vpe.api | 2 +- src/vpp/app/version.c | 2 +- src/vpp/conf/80-vpp.conf | 2 +- src/vpp/conf/startup.conf | 4 ++-- src/vpp/stats/stats.api | 6 +++--- src/vpp/stats/stats.md | 2 +- src/vppinfra/dlmalloc.c | 10 +++++----- src/vppinfra/elf.h | 2 +- src/vppinfra/elog.c | 2 +- src/vppinfra/hash.h | 16 ++++++++-------- src/vppinfra/heap.h | 4 ++-- src/vppinfra/maplog.h | 6 +++--- src/vppinfra/memcpy_avx2.h | 2 +- src/vppinfra/memcpy_avx512.h | 2 +- src/vppinfra/mhash.c | 2 +- src/vppinfra/mheap.h | 2 +- src/vppinfra/os.h | 2 +- src/vppinfra/phash.c | 2 +- src/vppinfra/pool.h | 2 +- src/vppinfra/qsort.c | 2 +- src/vppinfra/test_vec.c | 2 +- src/vppinfra/timing_wheel.h | 2 +- src/vppinfra/unformat.c | 2 +- src/vppinfra/valgrind.h | 2 +- src/vppinfra/vec_bootstrap.h | 4 ++-- src/vppinfra/warnings.h | 6 +++--- 32 files changed, 54 insertions(+), 54 deletions(-) diff --git a/src/vat/api_format.c b/src/vat/api_format.c index 9a31f187bef..83b875e3be4 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -1355,7 +1355,7 @@ static void vl_api_l2_macs_event_t_handler (vl_api_l2_macs_event_t * mp) { u32 n_macs = ntohl (mp->n_macs); - errmsg ("L2MAC event recived with pid %d cl-idx %d for %d macs: \n", + errmsg ("L2MAC event received with pid %d cl-idx %d for %d macs: \n", ntohl (mp->pid), mp->client_index, n_macs); int i; for (i = 0; i < n_macs; i++) @@ -9298,7 +9298,7 @@ api_mpls_ip_bind_unbind (vat_main_t * vam) if (!address_set) { - errmsg ("IP addres not set"); + errmsg ("IP address not set"); return -99; } @@ -23849,7 +23849,7 @@ _(one_ndp_entries_get, "bd ") \ _(one_add_del_l2_arp_entry, "[del] mac bd ip4 ") \ _(one_l2_arp_bd_get, "") \ _(one_l2_arp_entries_get, "bd ") \ -_(one_stats_enable_disable, "enable|disalbe") \ +_(one_stats_enable_disable, "enable|disable") \ _(show_one_stats_enable_disable, "") \ _(one_eid_table_vni_dump, "") \ _(one_eid_table_map_dump, "l2|l3") \ diff --git a/src/vpp-api/client/client.c b/src/vpp-api/client/client.c index b27e5b74798..6c922dbe2e8 100644 --- a/src/vpp-api/client/client.c +++ b/src/vpp-api/client/client.c @@ -273,7 +273,7 @@ vac_rx_suspend (void) ep = vl_msg_api_alloc (sizeof (*ep)); ep->_vl_msg_id = ntohs(VL_API_MEMCLNT_RX_THREAD_SUSPEND); vl_msg_api_send_shmem(am->vl_input_queue, (u8 *)&ep); - /* Wait for RX thread to tell us it has suspendend */ + /* Wait for RX thread to tell us it has suspended */ pthread_cond_wait(&pm->suspend_cv, &pm->queue_lock); rx_is_running = false; } diff --git a/src/vpp/api/api.c b/src/vpp/api/api.c index 6c06ab4cef3..f7643f423f3 100644 --- a/src/vpp/api/api.c +++ b/src/vpp/api/api.c @@ -432,7 +432,7 @@ static void setup_message_id_table (api_main_t * am); /* * vpe_api_hookup * Add vpe's API message handlers to the table. - * vlib has alread mapped shared memory and + * vlib has already mapped shared memory and * added the client registration handlers. * See .../open-repo/vlib/memclnt_vlib.c:memclnt_process() */ diff --git a/src/vpp/api/summary_stats_client.c b/src/vpp/api/summary_stats_client.c index e0488b5ebc0..8c8e9bbe44f 100644 --- a/src/vpp/api/summary_stats_client.c +++ b/src/vpp/api/summary_stats_client.c @@ -96,7 +96,7 @@ vlib_main_t **vlib_mains; void vlib_cli_output (struct vlib_main_t *vm, char *fmt, ...) { - clib_warning ("vlib_cli_output callled..."); + clib_warning ("vlib_cli_output called..."); } diff --git a/src/vpp/api/test_client.c b/src/vpp/api/test_client.c index 98cc18e3f0a..e36fdbfc22c 100644 --- a/src/vpp/api/test_client.c +++ b/src/vpp/api/test_client.c @@ -93,7 +93,7 @@ vlib_main_t **vlib_mains; void vlib_cli_output (struct vlib_main_t *vm, char *fmt, ...) { - clib_warning ("vlib_cli_output callled..."); + clib_warning ("vlib_cli_output called..."); } u8 * diff --git a/src/vpp/api/test_ha.c b/src/vpp/api/test_ha.c index 50552ad0e8c..d88c4d4c1f4 100644 --- a/src/vpp/api/test_ha.c +++ b/src/vpp/api/test_ha.c @@ -101,7 +101,7 @@ vlib_main_t **vlib_mains; void vlib_cli_output (struct vlib_main_t *vm, char *fmt, ...) { - clib_warning ("BUG: vlib_cli_output callled..."); + clib_warning ("BUG: vlib_cli_output called..."); } #define foreach_api_msg \ diff --git a/src/vpp/api/vpe.api b/src/vpp/api/vpe.api index 22b7f3e66ac..2eb14bc2fd4 100644 --- a/src/vpp/api/vpe.api +++ b/src/vpp/api/vpe.api @@ -47,7 +47,7 @@ option version = "1.0.0"; * SR APIs: see .../src/vnet/srv6/{sr.api, sr_api.c} * CLASSIFY APIs: see ... /src/vnet/classify/{classify.api, classify_api.c} * FLOW APIs: see ... /src/vnet/flow/{flow.api, flow_api.c} - * DHCP APIs: see ... /src/vnet/dhcp/{dhcpk.api, dhcp_api.c} + * DHCP APIs: see ... /src/vnet/dhcp/{dhcp.api, dhcp_api.c} * COP APIs: see ... /src/vnet/cop/{cop.api, cop_api.c} * POLICER APIs: see ... /src/vnet/policer/{policer.api, policer_api.c} * STATS APIs: see .../src/vpp/stats/{stats.api, stats.c} diff --git a/src/vpp/app/version.c b/src/vpp/app/version.c index 58ac9bad2a2..e210663333d 100644 --- a/src/vpp/app/version.c +++ b/src/vpp/app/version.c @@ -102,7 +102,7 @@ show_vpe_version_command_fn (vlib_main_t * vm, } /*? - * This commmand displays image version and command line arguments + * This command displays image version and command line arguments * * @cliexpar * How to display the image version string: diff --git a/src/vpp/conf/80-vpp.conf b/src/vpp/conf/80-vpp.conf index 8fdf184cf83..539cbb704dc 100644 --- a/src/vpp/conf/80-vpp.conf +++ b/src/vpp/conf/80-vpp.conf @@ -7,7 +7,7 @@ vm.max_map_count=3096 # All groups allowed to access hugepages vm.hugetlb_shm_group=0 -# Shared Memory Max must be greator or equal to the total size of hugepages. +# Shared Memory Max must be greater or equal to the total size of hugepages. # For 2MB pages, TotalHugepageSize = vm.nr_hugepages * 2 * 1024 * 1024 # If the existing kernel.shmmax setting (cat /sys/proc/kernel/shmmax) # is greater than the calculated TotalHugepageSize then set this parameter diff --git a/src/vpp/conf/startup.conf b/src/vpp/conf/startup.conf index 979d41ab4c3..66b0c226303 100644 --- a/src/vpp/conf/startup.conf +++ b/src/vpp/conf/startup.conf @@ -70,7 +70,7 @@ cpu { } # dpdk { - ## Change default settings for all intefaces + ## Change default settings for all interfaces # dev default { ## Number of receive queues, enables RSS ## Default is 1 @@ -114,7 +114,7 @@ cpu { ## uio_pci_generic or auto (default) # uio-driver vfio-pci - ## Disable mutli-segment buffers, improves performance but + ## Disable multi-segment buffers, improves performance but ## disables Jumbo MTU support # no-multi-seg diff --git a/src/vpp/stats/stats.api b/src/vpp/stats/stats.api index c66f2e4ab43..c94471ae93c 100644 --- a/src/vpp/stats/stats.api +++ b/src/vpp/stats/stats.api @@ -177,7 +177,7 @@ autoreply define want_ip6_fib_stats u32 pid; }; -/** \brief Want IP4 muilticast FIB Stats, register for continuous stats +/** \brief Want IP4 multicast FIB Stats, register for continuous stats @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request @param enable_disable - 1 = enable stats, 0 = disable @@ -273,7 +273,7 @@ typeonly manual_print manual_endian define ip4_nbr_counter }; /** - * @brief Per-neighbour (i.e. per-adjacency) coutners + * @brief Per-neighbour (i.e. per-adjacency) counters * @param count The size of the array of counters * @param sw_if_index The interface the adjacency is on * @param begin Flag to indicate this is the first set of stats for this @@ -494,7 +494,7 @@ autoreply define want_bier_neighbor_stats /** \brief Stat for one BIER neighbor object @param tbl_id - The BIER Table ID the neighbour belongs to. - @param path - The path describing the negihbor (this is the data + @param path - The path describing the neighbor (this is the data given during a BIER route add) @param packets - number of packets sent @param bytes - number of bytes sent diff --git a/src/vpp/stats/stats.md b/src/vpp/stats/stats.md index d66c31bb636..dd14a188e47 100644 --- a/src/vpp/stats/stats.md +++ b/src/vpp/stats/stats.md @@ -36,7 +36,7 @@ typedef struct { ``` #### Writer -On the VPP side there is a single writer (controlled by a spinlock). When the writer starts it sets in_progress=1, continues with the update of the data-structues, and when done, bumps epoch++ and sets in_progress=0. +On the VPP side there is a single writer (controlled by a spinlock). When the writer starts it sets in_progress=1, continues with the update of the data-structures, and when done, bumps epoch++ and sets in_progress=0. #### Readers If in_progress=1, there is no point continuing, so reader sits spinning on the in_progress flag until it is 0. Then it sets start_epoch = epoch and continues copying out the counter data it is interested in, while doing strict boundary checks on all offsets / pointers. When the reader is done, it checks if in_progress=1 or if epoch != start_epoch. If either of those are true is discards the data read. diff --git a/src/vppinfra/dlmalloc.c b/src/vppinfra/dlmalloc.c index 16f2de0fc09..8a07621b7a5 100644 --- a/src/vppinfra/dlmalloc.c +++ b/src/vppinfra/dlmalloc.c @@ -342,7 +342,7 @@ static FORCEINLINE int win32munmap(void* ptr, size_t size) { #define CALL_MREMAP(addr, osz, nsz, mv) MFAIL #endif /* HAVE_MMAP && HAVE_MREMAP */ -/* mstate bit set if continguous morecore disabled or failed */ +/* mstate bit set if contiguous morecore disabled or failed */ #define USE_NONCONTIGUOUS_BIT (4U) /* mstate bit set if no expansion allowed */ @@ -1585,7 +1585,7 @@ static size_t traverse_and_check(mstate m); http://www.usenix.org/events/lisa03/tech/robertson.html The footer of an inuse chunk holds the xor of its mstate and a random seed, that is checked upon calls to free() and realloc(). This is - (probabalistically) unguessable from outside the program, but can be + (probabilistically) unguessable from outside the program, but can be computed by any code successfully malloc'ing any chunk, so does not itself provide protection against code that has already broken security through some other means. Unlike Robertson et al, we @@ -3278,7 +3278,7 @@ void* dlmalloc(size_t bytes) { void dlfree(void* mem) { /* - Consolidate freed chunks with preceeding or succeeding bordering + Consolidate freed chunks with preceding or succeeding bordering free chunks, if they exist, and then place in a bin. Intermixed with special cases for top, dv, mmapped chunks, and usage errors. */ @@ -5048,10 +5048,10 @@ History: Wolfram Gloger (Gloger@lrz.uni-muenchen.de). * Use last_remainder in more cases. * Pack bins using idea from colin@nyx10.cs.du.edu - * Use ordered bins instead of best-fit threshhold + * Use ordered bins instead of best-fit threshold * Eliminate block-local decls to simplify tracing and debugging. * Support another case of realloc via move into top - * Fix error occuring when initial sbrk_base not word-aligned. + * Fix error occurring when initial sbrk_base not word-aligned. * Rely on page size for units instead of SBRK_UNIT to avoid surprises about sbrk alignment conventions. * Add mallinfo, mallopt. Thanks to Raymond Nijssen diff --git a/src/vppinfra/elf.h b/src/vppinfra/elf.h index 008ea284b31..c57b06f5d2a 100644 --- a/src/vppinfra/elf.h +++ b/src/vppinfra/elf.h @@ -120,7 +120,7 @@ _ (68HC12, 53) /* Motorola M68HC12 */ \ _ (MMA, 54) /* Fujitsu MMA Multimedia Accel. */ \ _ (PCP, 55) /* Siemens PCP */ \ - _ (NCPU, 56) /* Sony nCPU embeeded RISC */ \ + _ (NCPU, 56) /* Sony nCPU embedded RISC */ \ _ (NDR1, 57) /* Denso NDR1 microprocessor */ \ _ (STARCORE, 58) /* Motorola Start*Core processor */ \ _ (ME16, 59) /* Toyota ME16 processor */ \ diff --git a/src/vppinfra/elog.c b/src/vppinfra/elog.c index 036dce98f32..a86fadeaa39 100644 --- a/src/vppinfra/elog.c +++ b/src/vppinfra/elog.c @@ -736,7 +736,7 @@ elog_merge (elog_main_t * dst, u8 * dst_tag, elog_main_t * src, u8 * src_tag, /* * Move the earlier set of events later, to avoid creating - * events which preceed the Big Bang (aka have negative timestamps). + * events which precede the Big Bang (aka have negative timestamps). * * Not to any scale, we have something like the following picture: * diff --git a/src/vppinfra/hash.h b/src/vppinfra/hash.h index de155e6ac1c..36a70066044 100644 --- a/src/vppinfra/hash.h +++ b/src/vppinfra/hash.h @@ -274,7 +274,7 @@ uword hash_bytes (void *v); /* Public macro to set (key, value) for pointer key */ #define hash_set_mem(h,key,value) hash_set3 (h, pointer_to_uword (key), (value), 0) -/* Public inline funcion allocate and copy key to use in hash for pointer key */ +/* Public inline function allocate and copy key to use in hash for pointer key */ always_inline void hash_set_mem_alloc (uword ** h, void *key, uword v) { @@ -290,7 +290,7 @@ hash_set_mem_alloc (uword ** h, void *key, uword v) /* Public macro to unset (key, value) for pointer key */ #define hash_unset_mem(h,key) ((h) = _hash_unset ((h), pointer_to_uword (key),0)) -/* Public inline funcion to unset pointer key and then free the key memory */ +/* Public inline function to unset pointer key and then free the key memory */ always_inline void hash_unset_mem_free (uword ** h, void *key) { @@ -311,7 +311,7 @@ extern void *_hash_free (void *v); clib_error_t *hash_validate (void *v); -/* Public inline funcion to get the number of value bytes for a hash table */ +/* Public inline function to get the number of value bytes for a hash table */ always_inline uword hash_value_bytes (hash_t * h) { @@ -319,7 +319,7 @@ hash_value_bytes (hash_t * h) return (sizeof (p->value[0]) << h->log2_pair_size) - sizeof (p->key); } -/* Public inline funcion to get log2(size of a (key,value) pair) */ +/* Public inline function to get log2(size of a (key,value) pair) */ always_inline uword hash_pair_log2_bytes (hash_t * h) { @@ -332,21 +332,21 @@ hash_pair_log2_bytes (hash_t * h) return log2_bytes; } -/* Public inline funcion to get size of a (key,value) pair */ +/* Public inline function to get size of a (key,value) pair */ always_inline uword hash_pair_bytes (hash_t * h) { return (uword) 1 << hash_pair_log2_bytes (h); } -/* Public inline funcion to advance a pointer past one (key,value) pair */ +/* Public inline function to advance a pointer past one (key,value) pair */ always_inline void * hash_forward1 (hash_t * h, void *v) { return (u8 *) v + hash_pair_bytes (h); } -/* Public inline funcion to advance a pointer past N (key,value) pairs */ +/* Public inline function to advance a pointer past N (key,value) pairs */ always_inline void * hash_forward (hash_t * h, void *v, uword n) { @@ -438,7 +438,7 @@ do { \ calls body with each active hash pair */ -/* Iteratate over key/value pairs. */ +/* Iterate over key/value pairs. */ #define hash_foreach(key_var,value_var,h,body) \ do { \ hash_pair_t * _r; \ diff --git a/src/vppinfra/heap.h b/src/vppinfra/heap.h index 70e34cb4eb3..f76c9453e65 100644 --- a/src/vppinfra/heap.h +++ b/src/vppinfra/heap.h @@ -137,7 +137,7 @@ typedef struct format_function_t *format_elt; - /* Used for validattion/debugging. */ + /* Used for validation/debugging. */ uword *used_elt_bitmap; /* First and last element of doubly linked chain of elements. */ @@ -150,7 +150,7 @@ typedef struct u32 flags; /* Static heaps are made from external memory given to - us by user and are not re-sizeable vectors. */ + us by user and are not re-sizable vectors. */ #define HEAP_IS_STATIC (1) } heap_header_t; diff --git a/src/vppinfra/maplog.h b/src/vppinfra/maplog.h index 67a83a72cf3..f7d2f75a95b 100644 --- a/src/vppinfra/maplog.h +++ b/src/vppinfra/maplog.h @@ -101,9 +101,9 @@ typedef struct u64 file_size_in_bytes; /**< file size in bytes */ u32 record_size_in_bytes; /**< record size in bytes */ u32 application_id; /**< application identifier */ - u8 application_major_version; /**< applcation major version number */ - u8 application_minor_version; /**< applcation minor version number */ - u8 application_patch_version; /**< applcation patch version number */ + u8 application_major_version; /**< application major version number */ + u8 application_minor_version; /**< application minor version number */ + u8 application_patch_version; /**< application patch version number */ u8 maplog_is_circular; /**< single, circular log */ } clib_maplog_init_args_t; diff --git a/src/vppinfra/memcpy_avx2.h b/src/vppinfra/memcpy_avx2.h index da398a4512a..6519d86924e 100644 --- a/src/vppinfra/memcpy_avx2.h +++ b/src/vppinfra/memcpy_avx2.h @@ -229,7 +229,7 @@ clib_memcpy (void *dst, const void *src, size_t n) } -#endif /* included_clib_mamcpy_avx2_h */ +#endif /* included_clib_memcpy_avx2_h */ /* diff --git a/src/vppinfra/memcpy_avx512.h b/src/vppinfra/memcpy_avx512.h index 003908026c3..67982500b6c 100644 --- a/src/vppinfra/memcpy_avx512.h +++ b/src/vppinfra/memcpy_avx512.h @@ -265,7 +265,7 @@ clib_memcpy (void *dst, const void *src, size_t n) } -#endif /* included_clib_mamcpy_avx512_h */ +#endif /* included_clib_memcpy_avx512_h */ /* diff --git a/src/vppinfra/mhash.c b/src/vppinfra/mhash.c index 00b67c4959f..b694cc7c50f 100644 --- a/src/vppinfra/mhash.c +++ b/src/vppinfra/mhash.c @@ -263,7 +263,7 @@ typedef struct { u32 heap_handle; - /* Must conincide with vec_header. */ + /* Must coincide with vec_header. */ vec_header_t vec; } mhash_string_key_t; diff --git a/src/vppinfra/mheap.h b/src/vppinfra/mheap.h index 918adb137d7..afc2bf485b5 100644 --- a/src/vppinfra/mheap.h +++ b/src/vppinfra/mheap.h @@ -80,7 +80,7 @@ uword mheap_bytes (void *v); void mheap_usage (void *v, clib_mem_usage_t * usage); -/* Enable disable traceing. */ +/* Enable disable tracing. */ void mheap_trace (void *v, int enable); /* Test routine. */ diff --git a/src/vppinfra/os.h b/src/vppinfra/os.h index 33300716103..3ec214e29b1 100644 --- a/src/vppinfra/os.h +++ b/src/vppinfra/os.h @@ -44,7 +44,7 @@ /* External panic function. */ void os_panic (void); -/* External exit function analagous to unix exit. */ +/* External exit function analogous to unix exit. */ void os_exit (int code); /* External function to print a line. */ diff --git a/src/vppinfra/phash.c b/src/vppinfra/phash.c index 14da522594a..f6eecaa4103 100644 --- a/src/vppinfra/phash.c +++ b/src/vppinfra/phash.c @@ -556,7 +556,7 @@ augment (phash_main_t * pm, u32 b_root, u32 high_water) /* tb_parent with v has either one or zero collisions. */ - /* add childb to the queue of reachable things */ + /* add child b to the queue of reachable things */ if (tb_child) tb_child->water_b = high_water; pm->tabq[tail].b_q = tb_child ? tb_child - pm->tabb : ~0; diff --git a/src/vppinfra/pool.h b/src/vppinfra/pool.h index 2b8e0581e38..692702247ea 100644 --- a/src/vppinfra/pool.h +++ b/src/vppinfra/pool.h @@ -493,7 +493,7 @@ do { \ } /** - * @brief Remove all elemenets from a pool in a safe way + * @brief Remove all elements from a pool in a safe way * * @param VAR each element in the pool * @param POOL The pool to flush diff --git a/src/vppinfra/qsort.c b/src/vppinfra/qsort.c index 2faa5897eb2..145ae40fe91 100644 --- a/src/vppinfra/qsort.c +++ b/src/vppinfra/qsort.c @@ -133,7 +133,7 @@ qsort (void *base, uword n, uword size, * of the first, last and middle elements). (Using this median instead of * the first element is a big win). Then, the usual partitioning/swapping, * followed by moving the discriminator into the right place. Then, figure - * out the sizes of the two partions, do the smaller one recursively and the + * out the sizes of the two partitions, do the smaller one recursively and the * larger one via a repeat of this code. Stopping when there are less than * THRESH elements in a partition and cleaning up with an insertion sort (in * our caller) is a huge win. All data swaps are done in-line, which is diff --git a/src/vppinfra/test_vec.c b/src/vppinfra/test_vec.c index d02d71c4a2a..bc878eef518 100644 --- a/src/vppinfra/test_vec.c +++ b/src/vppinfra/test_vec.c @@ -124,7 +124,7 @@ uword g_call_stats[OP_MAX]; /* A structure for both vector headers and vector elements might be useful to - uncover potential alignement issues. */ + uncover potential alignment issues. */ typedef struct { diff --git a/src/vppinfra/timing_wheel.h b/src/vppinfra/timing_wheel.h index 7daea994248..e668eb031a2 100644 --- a/src/vppinfra/timing_wheel.h +++ b/src/vppinfra/timing_wheel.h @@ -20,7 +20,7 @@ typedef struct { /* Time of this element in units cpu clock ticks relative to time - base. 32 bits should be large enough for serveral kilo-seconds + base. 32 bits should be large enough for several kilo-seconds to elapse before we have to re-set time base. */ u32 cpu_time_relative_to_base; diff --git a/src/vppinfra/unformat.c b/src/vppinfra/unformat.c index e30c6d34c22..365cdb15700 100644 --- a/src/vppinfra/unformat.c +++ b/src/vppinfra/unformat.c @@ -167,7 +167,7 @@ di (unformat_input_t * i) #endif /* Parse delimited vector string. If string starts with { then string - is delimited by balenced parenthesis. Other string is delimited by + is delimited by balanced parenthesis. Other string is delimited by white space. {} were chosen since they are special to the shell. */ static uword unformat_string (unformat_input_t * input, diff --git a/src/vppinfra/valgrind.h b/src/vppinfra/valgrind.h index e74d7e828be..7509e70eb72 100644 --- a/src/vppinfra/valgrind.h +++ b/src/vppinfra/valgrind.h @@ -3728,7 +3728,7 @@ VALGRIND_PRINTF_BACKTRACE (const char *format, ...) /* These requests allow control to move from the simulated CPU to the - real CPU, calling an arbitary function. + real CPU, calling an arbitrary function. Note that the current ThreadId is inserted as the first argument. So this call: diff --git a/src/vppinfra/vec_bootstrap.h b/src/vppinfra/vec_bootstrap.h index bff688965b4..fec0df08143 100644 --- a/src/vppinfra/vec_bootstrap.h +++ b/src/vppinfra/vec_bootstrap.h @@ -39,7 +39,7 @@ #define included_clib_vec_bootstrap_h /** \file - Vector bootsrap header file + Vector bootstrap header file */ /* Bootstrap include so that #include can include e.g. @@ -47,7 +47,7 @@ /** \brief vector header structure - Bookeeping header preceding vector elements in memory. + Bookkeeping header preceding vector elements in memory. User header information may preceed standard vec header. If you change u32 len -> u64 len, single vectors can exceed 2**32 elements. Clib heaps are vectors. */ diff --git a/src/vppinfra/warnings.h b/src/vppinfra/warnings.h index 61dcc44f95a..1d9f4b7d749 100644 --- a/src/vppinfra/warnings.h +++ b/src/vppinfra/warnings.h @@ -33,12 +33,12 @@ /* * Macros to toggle off/on warnings * - * Start by silenging pragma warnings so that we can explicitely silence + * Start by silencing pragma warnings so that we can explicitly silence * a warning introduced on some compiler version and not get a warning on older * versions of that same compiler. * - * gcc corresponding warnign is "Wpargma" - * clang corresponding warnign is "Wunknown-warning-option" + * gcc corresponding warning is "Wpargma" + * clang corresponding warning is "Wunknown-warning-option" * * For example, Wtautological-compare is introduced in gcc-6 and this would * trigger a Wpargma warning on gcc-5. -- 2.16.6