From 4d6fe1c317f0a541922f4cf945365fd31e608e10 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Wed, 18 Mar 2020 14:01:12 +1100 Subject: Added decimal and octal conversion specifiers ('%d' and '%o') to vsprintf(). Coverted all printk()/printf() functions to capatalised hex for readability. Tidied up some code. --- usrbin/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usrbin') diff --git a/usrbin/main.c b/usrbin/main.c index f05cb84..4706ceb 100644 --- a/usrbin/main.c +++ b/usrbin/main.c @@ -47,7 +47,7 @@ void pid2(void) { sleep(1); if(time() == 2) kill(1, 1); - printf("0x%04x:0x%08x: 0x%08x, 0x%08x\n", getpid(), (uint32_t) getpdir(), time(), x++); + printf("0x%04X:0x%08X: 0x%08X, 0x%08X\n", getpid(), (uint32_t) getpdir(), time(), x++); if(x > 3) kill(getpid(), SIGKILL); -- cgit v1.3