summaryrefslogtreecommitdiff
path: root/src/user/test/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/test/main.c')
-rw-r--r--src/user/test/main.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/user/test/main.c b/src/user/test/main.c
index c98a619..81753bd 100644
--- a/src/user/test/main.c
+++ b/src/user/test/main.c
@@ -78,7 +78,17 @@ void fprint(FILE f, char *s) {
write(f, 0, strlen(s), s);
}
-int main() {
+int main(char** args) {
+ char**a;
+ if (args != 0) {
+ printk("args");
+ for (a = args; *a != 0; a++) {
+ printk(" - ");
+ printk(*a);
+ }
+ printk("\n");
+ }
+
printk("(test app) malloc(42) = ");
printk_hex((uint32_t)malloc(42));
printk("\n");