diff options
author | dzwdz | 2022-08-03 00:23:50 +0200 |
---|---|---|
committer | dzwdz | 2022-08-03 00:23:50 +0200 |
commit | a2a1e4bbfcda8c1314b592c8c940e96e95cb68d4 (patch) | |
tree | 200f63d71eb07b9f9c53ab4f14b58b7b15b2f4bf /src/user/app/testelf | |
parent | b4447c1c7bc8639774df6bd74428977908bff61e (diff) |
shared: clean up printf, %u support (amongst other things)
Diffstat (limited to 'src/user/app/testelf')
-rw-r--r-- | src/user/app/testelf/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/app/testelf/main.c b/src/user/app/testelf/main.c index 5111791..aa1f596 100644 --- a/src/user/app/testelf/main.c +++ b/src/user/app/testelf/main.c @@ -5,8 +5,8 @@ const char *str = "Hello!", *str2 = "World."; int main(int argc, char **argv, char **envp) { printf("elftest's &main == 0x%x\n", &main); printf("%s %s\n", str, str2); - printf("argc == 0x%x\n", argc); + printf("argc == %u\n", argc); for (int i = 0; i < argc; i++) - printf("argv[0x%x] == 0x%x == \"%s\"\n", i, argv[i], argv[i]); + printf("argv[%u] == 0x%x == \"%s\"\n", i, argv[i], argv[i]); return 0; } |