From a2a1e4bbfcda8c1314b592c8c940e96e95cb68d4 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 3 Aug 2022 00:23:50 +0200 Subject: shared: clean up printf, %u support (amongst other things) --- src/user/app/shell/shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/app/shell') diff --git a/src/user/app/shell/shell.c b/src/user/app/shell/shell.c index 6eb328f..66725a1 100644 --- a/src/user/app/shell/shell.c +++ b/src/user/app/shell/shell.c @@ -51,7 +51,7 @@ static 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("0x%x ns (assuming 3GHz)\n", time / div); + printf("%u ns (assuming 3GHz)\n", time / div); return; } else if (!strcmp(argv[0], "exit")) { exit(0); -- cgit v1.2.3