From e4118bb67dee6b4064d196cbe6e1c83cb7d1d586 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 19 Oct 2022 15:17:36 +0200 Subject: shared/printf: implement %p --- src/user/app/init/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/user/app/init/init.c') diff --git a/src/user/app/init/init.c b/src/user/app/init/init.c index 7e6ddab..5f275ee 100644 --- a/src/user/app/init/init.c +++ b/src/user/app/init/init.c @@ -37,7 +37,7 @@ int main(void) { freopen("/kdev/com1", "a+", stdout); freopen("/kdev/com1", "a+", stderr); - printf("in init (stage 2), main at 0x%x\n", &main); + printf("in init (stage 2), main at %p\n", &main); MOUNT_AT("/keyboard") { ps2_drv(); } MOUNT_AT("/bin/") { -- cgit v1.2.3