]> granicus.if.org Git - strace/commitdiff
Fix a few misspellings in comments
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 16 Jun 2017 22:54:04 +0000 (22:54 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 17 Jun 2017 10:40:05 +0000 (10:40 +0000)
Reported by kernel's checkpatch.pl script.

NEWS
linux/ptp_clock.h
strace.c
syscall.c
test/skodic.c
tests/perf_event_open.c
tests/tests.h

diff --git a/NEWS b/NEWS
index 41ec2e0a2b8574e5fa8f98d73a3f13f3d5aa82e3..0d81232195b91c4531182278f8417ce451bb5865 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -847,7 +847,7 @@ Changes in 4.4
 ==============
 * Fix Linux/ia64 support, looks like someone renamed a few things on us
 * Fix the ioctl setup for Linux, turned out it did not really work.
-  Improve the ioctl extracter as well so we decode some more ones.
+  Improve the ioctl extractor as well so we decode some more ones.
 
 Changes in 4.3.1
 ================
@@ -939,7 +939,7 @@ New Features in version 3.0
 ===========================
 
 * non-ascii strings can be optionally printed entirely in hex
-* the output format is readable when mutiple processes are generating output
+* the output format is readable when multiple processes are generating output
 * exit values are printed in an alignment column
 * is is possible to suppress messages about attaching and detaching
 * various tracing features can be enabled on a per syscall/signal/desc basis
index 1a41676c651fb2058336026048c0861e0c00b2c1..248f3ce782446792c5eff711786accae2e7a0360 100644 (file)
@@ -90,7 +90,7 @@ struct ptp_sys_offset {
 #define PTP_SYS_OFFSET     _IOW(PTP_CLK_MAGIC, 5, struct ptp_sys_offset)
 
 struct ptp_extts_event {
-       struct ptp_clock_time t; /* Time event occured. */
+       struct ptp_clock_time t; /* Time event occurred. */
        unsigned int index;      /* Which channel produced the event. */
        unsigned int flags;      /* Reserved for future use. */
        unsigned int rsv[2];     /* Reserved for future use. */
index 5a1bcff37196674502b10307423cde4868dac24a..f4b488e18d394578f6c6f15b652ffd761596166a 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -2413,7 +2413,7 @@ next_event(int *pstatus, siginfo_t *si)
                 * Is this post-attach SIGSTOP?
                 * Interestingly, the process may stop
                 * with STOPSIG equal to some other signal
-                * than SIGSTOP if we happend to attach
+                * than SIGSTOP if we happened to attach
                 * just before the process takes a signal.
                 */
                if (sig == SIGSTOP && (tcp->flags & TCB_IGNORE_ONE_SIGSTOP)) {
index 0250540c70a556cb97ee1486d323dab462c887b3..c78436b952235fdca5f6959ff1b9d987ba249370 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -847,7 +847,7 @@ syscall_exiting_trace(struct tcb *tcp, struct timeval tv, int res)
        /* FIXME: not_failing_only (IOW, option -z) is broken:
         * failure of syscall is known only after syscall return.
         * Thus we end up with something like this on, say, ENOENT:
-        *     open("doesnt_exist", O_RDONLY <unfinished ...>
+        *     open("does_not_exist", O_RDONLY <unfinished ...>
         *     {next syscall decode}
         * whereas the intended result is that open(...) line
         * is not shown at all.
index 39d916411901a45a0ee154638179e3f4c5a92fd2..fa60ea7df0b4252ded0840fd1d6bcd88e1c082b6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * This demonstrates races: kernel may actually open other file
  * than you read in the strace output.
- * If you see a successfull open of /etc/shadow,
+ * If you see a successful open of /etc/shadow,
  * you know you've seen a race.
  *
  * $ gcc -Wall -O0 skodic.c -o skodic
index 3f544a6d2971dfc4d94aed0d5319fff2b0e88a41..b57c9cf368f13c0b18f2f178476341a7f17ba7c8 100644 (file)
@@ -73,7 +73,7 @@ struct u64_val_str {
        const char *str;
 };
 
-/* In order to avoid endianess-specific hackery */
+/* In order to avoid endianness-specific hackery. */
 struct pea_flags {
        uint64_t disabled                 :1,
                 inherit                  :1,
index 3634493045bf14d7a63cbbc10465bb3c3559f744..d2244134c01d6de5fad496ea924de4b5160cb88d 100644 (file)
@@ -66,7 +66,7 @@ void skip_if_unavailable(const char *);
 
 /*
  * Allocate memory that ends on the page boundary.
- * Pages allocated by this call are preceeded by an unmapped page
+ * Pages allocated by this call are preceded by an unmapped page
  * and followed also by an unmapped page.
  */
 void *tail_alloc(const size_t)