diff options
author | rsc <rsc> | 2007-08-24 20:03:40 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-08-24 20:03:40 +0000 |
commit | 1b789e1d50df4e7b98fa131fc29caf29a5f38bfa (patch) | |
tree | d3a2bd24a03aaede0a51b8e5938db6d55753e96a /init.c | |
parent | 8e88f9e2c617cc1002039c6e37c3c831319b1f8f (diff) | |
download | xv6-labs-1b789e1d50df4e7b98fa131fc29caf29a5f38bfa.tar.gz xv6-labs-1b789e1d50df4e7b98fa131fc29caf29a5f38bfa.tar.bz2 xv6-labs-1b789e1d50df4e7b98fa131fc29caf29a5f38bfa.zip |
Remove puts in favor of printf.
Allow multiple arguments to ls.
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -21,18 +21,18 @@ main(void) dup(0); // stderr for(;;){ - puts("init: starting sh\n"); + printf(1, "init: starting sh\n"); pid = fork(); if(pid < 0){ - puts("init: fork failed\n"); + printf(1, "init: fork failed\n"); exit(); } if(pid == 0){ exec("sh", sh_args); - puts("init: exec sh failed\n"); + printf(1, "init: exec sh failed\n"); exit(); } while((wpid=wait()) >= 0 && wpid != pid) - puts("zombie!\n"); + printf(1, "zombie!\n"); } } |