Fix permission issue: enable virtual memory at user-ready only privliege
Move printfmt function to lib/