Skip to content

Commit

Permalink
Fix typos in hint message (iovisor#2106)
Browse files Browse the repository at this point in the history
Fix typos in hint message 

Signed-off-by: Paul Chaignon <[email protected]>
  • Loading branch information
pchaigno authored and yonghong-song committed Jan 3, 2019
1 parent 75836ef commit c8e98d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cc/libbpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,9 @@ static void bpf_print_hints(int ret, char *log)

// referencing global/static variables or read only data
if (strstr(log, "unknown opcode") != NULL) {
fprintf(stderr, "HINT: The 'unknown opcode' can happen if you reference"
"a global or static variable, or data in read only section. For example,"
"'char *p = \"hello\"' will result in p referencing a read only section,"
fprintf(stderr, "HINT: The 'unknown opcode' can happen if you reference "
"a global or static variable, or data in read-only section. For example,"
" 'char *p = \"hello\"' will result in p referencing a read-only section,"
" and 'char p[] = \"hello\"' will have \"hello\" stored on the stack.\n\n");
}

Expand Down

0 comments on commit c8e98d1

Please sign in to comment.