added kputs_pad(); implemented padding in kprintf(); put some padding tests in k_main()
git-svn-id: svn://anubis/hos/trunk@57 5b3e749e-e535-0410-8002-a9bb6afbdfca
This commit is contained in:
1 parent
ecd74fe35b
commit
fd02ee26e1
3 files changed
+51
-13
No files matched your search
@@ -6,6 +6,10 @@ extern "C" {
|
||||
void k_main()
|
||||
{
|
||||
kprintf("Hi from k_main()!\n");
|
||||
kprintf("padded 8 hex: 0x%08x|\n", 0x42);
|
||||
kprintf("padded -4 hex: 0x%-4x|\n", 0x42);
|
||||
kprintf("padded 20 str: %20s|\n", "hi there");
|
||||
kprintf("padded -20 str: %-20s|\n", "hi there");
|
||||
}
|
||||
|
||||
} /* extern "C" */
|
||||
Reference in new issue
Block a user