chore: fix misspelling

This commit is contained in:
Yordis Prieto Lazo
2022-12-18 22:19:16 -05:00
parent 2f959a773c
commit 0842910049
16 changed files with 31 additions and 30 deletions

View File

@@ -32,6 +32,6 @@ func makeFilesystemError() {
msg := []byte("fake filesystem error from problem-maker")
err := ioutil.WriteFile(ext4ErrorTrigger, msg, 0200)
if err != nil {
glog.Fatalf("Failed writting log to %q: %v", ext4ErrorTrigger, err)
glog.Fatalf("Failed writing log to %q: %v", ext4ErrorTrigger, err)
}
}

View File

@@ -40,7 +40,7 @@ func writeKernelMessageOrDie(msg string) {
for _, line := range strings.Split(msg, "\n") {
err := ioutil.WriteFile(kmsgPath, []byte(line), 0644)
if err != nil {
glog.Fatalf("Failed writting to %q: %v", kmsgPath, err)
glog.Fatalf("Failed writing to %q: %v", kmsgPath, err)
}
}
}

View File

@@ -17,7 +17,7 @@
# This script generate kernel log in given rate.
# Note that this only works for journald.
# Note that this script can't be used to test multi-line patterns, because
# the test kernel log lines may be splitted by real kernel log.
# the test kernel log lines may be split by real kernel log.
# PROBLEM is the path to the problem log.
PROBLEM=${PROBLEM:-""}