diff options
Diffstat (limited to 'src/user/app/shell')
-rw-r--r-- | src/user/app/shell/builtins.c | 4 | ||||
-rw-r--r-- | src/user/app/shell/shell.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/user/app/shell/builtins.c b/src/user/app/shell/builtins.c index e0f848e..734370b 100644 --- a/src/user/app/shell/builtins.c +++ b/src/user/app/shell/builtins.c @@ -125,7 +125,7 @@ void cmd_hexdump(int argc, char **argv) { } continue; } else skipped = false; - printf("%08x ", pos + i); + printf("%08zx ", pos + i); for (size_t j = i; j < i + 8 && j < len; j++) printf("%02x ", buf[j]); @@ -148,7 +148,7 @@ void cmd_hexdump(int argc, char **argv) { } pos += len; } - printf("%08x\n", pos); + printf("%08zx\n", pos); fclose(file); } } diff --git a/src/user/app/shell/shell.c b/src/user/app/shell/shell.c index 5808de1..d2d7e37 100644 --- a/src/user/app/shell/shell.c +++ b/src/user/app/shell/shell.c @@ -72,7 +72,7 @@ void run_args(int argc, char **argv, struct redir *redir) { uint64_t div = 3000; run_args(argc - 1, argv + 1, redir); time = __rdtsc() - time; - printf("%u ns (assuming 3GHz)\n", time / div); + printf("%lu ns (assuming 3GHz)\n", time / div); return; } else if (!strcmp(argv[0], "exit")) { exit(0); |