Skip to content

Commit

Permalink
Signed-off-by: acceptacross <[email protected]>
Browse files Browse the repository at this point in the history
chore: fix some comments

Signed-off-by: acceptacross <[email protected]>
  • Loading branch information
acceptacross authored and rocallahan committed Mar 11, 2024
1 parent a19e7fd commit 2bb38b9
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/GdbCommandHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class GdbCommandHandler {
static GdbCommand* command_for_name(const std::string& name);

/**
* Special return value for commands that immediatly end a diversion session
* Special return value for commands that immediately end a diversion session
*/
static std::string cmd_end_diversion() {
return std::string("RRCmd_EndDiversion");
Expand Down
2 changes: 1 addition & 1 deletion src/RecordTask.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1738,7 +1738,7 @@ void RecordTask::record_remote(remote_ptr<void> addr, ssize_t num_bytes) {
bool ok = true;
auto buf = read_mem(addr.cast<uint8_t>(), num_bytes, &ok);
if (!ok) {
// Tracee probably died unexpectely. This should only happen
// Tracee probably died unexpectedly. This should only happen
// due to SIGKILL racing with our PTRACE_CONT.
if (!vm()->find_other_thread_group(this) &&
vm()->range_is_private_mapping(MemoryRange(addr, num_bytes))) {
Expand Down
2 changes: 1 addition & 1 deletion src/RmCommand.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static int rm(const string& trace, const RmFlags& flags, FILE* out) {
if (!flags.force && !is_trace(trace_path)) {
fprintf(stderr,
"\n"
"rr: Could not idenfity '%s' as a trace, use -f to remove anyway"
"rr: Could not identify '%s' as a trace, use -f to remove anyway"
" (errno %d).\n"
"\n",
trace_path.c_str(), errno);
Expand Down
2 changes: 1 addition & 1 deletion src/Session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ void Session::kill_all_tasks() {
/* We delete tasks in two passes. First, we kill
* every non-thread-group-leader, then we kill every group leader.
* Linux expects threads group leaders to survive until the last
* member of the thread group has exited, so we accomodate that.
* member of the thread group has exited, so we accommodate that.
*/
for (auto& v : task_map) {
Task* t = v.second;
Expand Down
2 changes: 1 addition & 1 deletion src/replay_syscall.cc
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ static void process_execve(ReplayTask* t, const TraceFrame& trace_frame,
static void process_brk(ReplayTask* t) {
TraceReader::MappedData data;
KernelMapping km = t->trace_reader().read_mapped_region(&data);
// Zero flags means it's an an unmap, or no change.
// Zero flags means it's an unmap, or no change.
if (km.flags()) {
AutoRemoteSyscalls remote(t);
ASSERT(t, data.source == TraceReader::SOURCE_ZERO);
Expand Down
2 changes: 1 addition & 1 deletion src/test/openat2.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int main(void) {
test_assert(filefd == -1);

// openat2 was introduced by Linux 5.6
// if the syscall isn't supported, return immediatly
// if the syscall isn't supported, return immediately
if (errno == ENOSYS) {
atomic_puts("EXIT-SUCCESS");
return 0;
Expand Down
2 changes: 1 addition & 1 deletion third-party/brotli/enc/block_splitter.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ void BrotliSplitBlock(MemoryManager* m,
CopyLiteralsToByteArray(cmds, num_commands, data, pos, mask, literals);
/* Create the block split on the array of literals.
* Literal histograms can have alphabet size up to 256.
* Though, to accomodate context modeling, less than half of maximum size
* Though, to accommodate context modeling, less than half of maximum size
* is allowed. */
SplitByteVectorLiteral(
m, literals, literals_count,
Expand Down
2 changes: 1 addition & 1 deletion third-party/brotli/include/brotli/encode.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ typedef enum BrotliEncoderOperation {
* before it is depleted with other operations.
*
* Stream is soft-flushed before metadata block is emitted. Metadata block
* @b MUST be no longer than than 16MiB.
* @b MUST be no longer than 16MiB.
*/
BROTLI_OPERATION_EMIT_METADATA = 3
} BrotliEncoderOperation;
Expand Down

0 comments on commit 2bb38b9

Please sign in to comment.