Skip to content

Commit

Permalink
c/profile: fix a simple printf warning
Browse files Browse the repository at this point in the history
%016s is not a good format specifier, drop the leading zero, as it
doesn't make sense for strings.

Signed-off-by: Andrii Nakryiko <[email protected]>
  • Loading branch information
anakryiko committed Oct 16, 2023
1 parent 56e8054 commit 25b7e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/c/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static void print_frame(const char *name, uintptr_t input_addr, uintptr_t addr,
printf("\n");
}
} else {
printf("%016s %s", "", name);
printf("%16s %s", "", name);
if (code_info != NULL && code_info->dir != NULL && code_info->file != NULL) {
printf("@ %s/%s:%u [inlined]\n", code_info->dir, code_info->file, code_info->line);
} else if (code_info != NULL && code_info->file != NULL) {
Expand Down

0 comments on commit 25b7e7b

Please sign in to comment.