Skip to content

Commit 25b7e7b

Browse files
committed
c/profile: fix a simple printf warning
%016s is not a good format specifier, drop the leading zero, as it doesn't make sense for strings. Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
1 parent 56e8054 commit 25b7e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/c/profile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static void print_frame(const char *name, uintptr_t input_addr, uintptr_t addr,
4747
printf("\n");
4848
}
4949
} else {
50-
printf("%016s %s", "", name);
50+
printf("%16s %s", "", name);
5151
if (code_info != NULL && code_info->dir != NULL && code_info->file != NULL) {
5252
printf("@ %s/%s:%u [inlined]\n", code_info->dir, code_info->file, code_info->line);
5353
} else if (code_info != NULL && code_info->file != NULL) {

0 commit comments

Comments
 (0)