printf 15 cat.c printf(1, "cat: read error\n"); printf 32 cat.c printf(1, "cat: cannot open %s\n", argv[i]); printf 11 echo.c printf(1, "%s%s", argv[i], i+1 < argc ? " " : "\n"); printf 21 forktest.c printf(1, "fork test\n"); printf 32 forktest.c printf(1, "fork claimed to work N times!\n", N); printf 38 forktest.c printf(1, "wait stopped early\n"); printf 44 forktest.c printf(1, "wait got too many\n"); printf 48 forktest.c printf(1, "fork test OK\n"); printf 45 grep.c printf(2, "usage: grep pattern [file ...]\n"); printf 57 grep.c printf(1, "grep: cannot open %s\n", argv[i]); printf 23 init.c printf(1, "init: starting sh\n"); printf 26 init.c printf(1, "init: fork failed\n"); printf 31 init.c printf(1, "init: exec sh failed\n"); printf 35 init.c printf(1, "zombie!\n"); printf 11 kill.c printf(2, "usage: kill pid...\n"); printf 9 ln.c printf(2, "Usage: ln old new\n"); printf 13 ln.c printf(2, "link %s %s: failed\n", argv[1], argv[2]); printf 34 ls.c printf(2, "ls: cannot open %s\n", path); printf 39 ls.c printf(2, "ls: cannot stat %s\n", path); printf 46 ls.c printf(1, "%s %d %d %d\n", fmtname(path), st.type, st.ino, st.size); printf 51 ls.c printf(1, "ls: path too long\n"); printf 63 ls.c printf(1, "ls: cannot stat %s\n", buf); printf 66 ls.c printf(1, "%s %d %d %d\n", fmtname(buf), st.type, st.ino, st.size); printf 11 mkdir.c printf(2, "Usage: mkdir files...\n"); printf 17 mkdir.c printf(2, "mkdir: %s failed to create\n", argv[i]); printf 105 mkfs.c printf("nmeta %d (boot, super, log blocks %u inode blocks %u, bitmap blocks %u) blocks %d total %d\n", printf 243 mkfs.c printf("balloc: first %d blocks have been allocated\n", used); printf 249 mkfs.c printf("balloc: write bitmap block at sector %d\n", sb.bmapstart); printf 11 rm.c printf(2, "Usage: rm files...\n"); printf 17 rm.c printf(2, "rm: %s failed to delete\n", argv[i]); printf 79 sh.c printf(2, "exec %s failed\n", ecmd->argv[0]); printf 86 sh.c printf(2, "open %s failed\n", rcmd->file); printf 136 sh.c printf(2, "$ "); printf 165 sh.c printf(2, "cannot cd %s\n", buf+3); printf 178 sh.c printf(2, "%s\n", s); printf 338 sh.c printf(2, "leftovers: %s\n", s); printf 23 stressfs.c printf(1, "stressfs starting\n"); printf 30 stressfs.c printf(1, "write %d\n", i); printf 39 stressfs.c printf(1, "read\n"); printf 33 user.h void printf(int, char*, ...); printf 20 usertests.c printf(stdout, "iput test\n"); printf 23 usertests.c printf(stdout, "mkdir failed\n"); printf 27 usertests.c printf(stdout, "chdir iputdir failed\n"); printf 31 usertests.c printf(stdout, "unlink ../iputdir failed\n"); printf 35 usertests.c printf(stdout, "chdir / failed\n"); printf 38 usertests.c printf(stdout, "iput test ok\n"); printf 47 usertests.c printf(stdout, "exitiput test\n"); printf 51 usertests.c printf(stdout, "fork failed\n"); printf 56 usertests.c printf(stdout, "mkdir failed\n"); printf 60 usertests.c printf(stdout, "child chdir failed\n"); printf 64 usertests.c printf(stdout, "unlink ../iputdir failed\n"); printf 70 usertests.c printf(stdout, "exitiput test ok\n"); printf 89 usertests.c printf(stdout, "openiput test\n"); printf 91 usertests.c printf(stdout, "mkdir oidir failed\n"); printf 96 usertests.c printf(stdout, "fork failed\n"); printf 102 usertests.c printf(stdout, "open directory for write succeeded\n"); printf 109 usertests.c printf(stdout, "unlink failed\n"); printf 113 usertests.c printf(stdout, "openiput test ok\n"); printf 123 usertests.c printf(stdout, "open test\n"); printf 126 usertests.c printf(stdout, "open echo failed!\n"); printf 132 usertests.c printf(stdout, "open doesnotexist succeeded!\n"); printf 135 usertests.c printf(stdout, "open test ok\n"); printf 144 usertests.c printf(stdout, "small file test\n"); printf 147 usertests.c printf(stdout, "creat small succeeded; ok\n"); printf 149 usertests.c printf(stdout, "error: creat small failed!\n"); printf 154 usertests.c printf(stdout, "error: write aa %d new file failed\n", i); printf 158 usertests.c printf(stdout, "error: write bb %d new file failed\n", i); printf 162 usertests.c printf(stdout, "writes ok\n"); printf 166 usertests.c printf(stdout, "open small succeeded ok\n"); printf 168 usertests.c printf(stdout, "error: open small failed!\n"); printf 173 usertests.c printf(stdout, "read succeeded ok\n"); printf 175 usertests.c printf(stdout, "read failed\n"); printf 181 usertests.c printf(stdout, "unlink small failed\n"); printf 184 usertests.c printf(stdout, "small file test ok\n"); printf 192 usertests.c printf(stdout, "big files test\n"); printf 196 usertests.c printf(stdout, "error: creat big failed!\n"); printf 203 usertests.c printf(stdout, "error: write big file failed\n", i); printf 212 usertests.c printf(stdout, "error: open big failed!\n"); printf 221 usertests.c printf(stdout, "read only %d blocks from big", n); printf 226 usertests.c printf(stdout, "read failed %d\n", i); printf 230 usertests.c printf(stdout, "read content of block %d is %d\n", printf 238 usertests.c printf(stdout, "unlink big failed\n"); printf 241 usertests.c printf(stdout, "big files ok\n"); printf 249 usertests.c printf(stdout, "many creates, followed by unlink test\n"); printf 264 usertests.c printf(stdout, "many creates, followed by unlink; ok\n"); printf 269 usertests.c printf(stdout, "mkdir test\n"); printf 272 usertests.c printf(stdout, "mkdir failed\n"); printf 277 usertests.c printf(stdout, "chdir dir0 failed\n"); printf 282 usertests.c printf(stdout, "chdir .. failed\n"); printf 287 usertests.c printf(stdout, "unlink dir0 failed\n"); printf 290 usertests.c printf(stdout, "mkdir test ok\n"); printf 296 usertests.c printf(stdout, "exec test\n"); printf 298 usertests.c printf(stdout, "exec echo failed\n"); printf 312 usertests.c printf(1, "pipe() failed\n"); printf 323 usertests.c printf(1, "pipe1 oops 1\n"); printf 335 usertests.c printf(1, "pipe1 oops 2\n"); printf 345 usertests.c printf(1, "pipe1 oops 3 total %d\n", total); printf 351 usertests.c printf(1, "fork() failed\n"); printf 354 usertests.c printf(1, "pipe1 ok\n"); printf 364 usertests.c printf(1, "preempt: "); printf 380 usertests.c printf(1, "preempt write error"); printf 388 usertests.c printf(1, "preempt read error"); printf 392 usertests.c printf(1, "kill... "); printf 396 usertests.c printf(1, "wait... "); printf 400 usertests.c printf(1, "preempt ok\n"); printf 412 usertests.c printf(1, "fork failed\n"); printf 417 usertests.c printf(1, "wait wrong pid\n"); printf 424 usertests.c printf(1, "exitwait ok\n"); printf 433 usertests.c printf(1, "mem test\n"); printf 448 usertests.c printf(1, "couldn't allocate mem?!!\n"); printf 453 usertests.c printf(1, "mem ok\n"); printf 470 usertests.c printf(1, "sharedfd test\n"); printf 475 usertests.c printf(1, "fstests: cannot open sharedfd for writing"); printf 482 usertests.c printf(1, "fstests: write sharedfd failed\n"); printf 493 usertests.c printf(1, "fstests: cannot open sharedfd for reading\n"); printf 508 usertests.c printf(1, "sharedfd ok\n"); printf 510 usertests.c printf(1, "sharedfd oops %d %d\n", nc, np); printf 524 usertests.c printf(1, "fourfiles test\n"); printf 532 usertests.c printf(1, "fork failed\n"); printf 539 usertests.c printf(1, "create failed\n"); printf 546 usertests.c printf(1, "write failed %d\n", n); printf 565 usertests.c printf(1, "wrong char\n"); printf 573 usertests.c printf(1, "wrong length %d\n", total); printf 579 usertests.c printf(1, "fourfiles ok\n"); printf 590 usertests.c printf(1, "createdelete test\n"); printf 595 usertests.c printf(1, "fork failed\n"); printf 606 usertests.c printf(1, "create failed\n"); printf 613 usertests.c printf(1, "unlink failed\n"); printf 633 usertests.c printf(1, "oops createdelete %s didn't exist\n", name); printf 636 usertests.c printf(1, "oops createdelete %s did exist\n", name); printf 652 usertests.c printf(1, "createdelete ok\n"); printf 661 usertests.c printf(1, "unlinkread test\n"); printf 664 usertests.c printf(1, "create unlinkread failed\n"); printf 672 usertests.c printf(1, "open unlinkread failed\n"); printf 676 usertests.c printf(1, "unlink unlinkread failed\n"); printf 685 usertests.c printf(1, "unlinkread read failed"); printf 689 usertests.c printf(1, "unlinkread wrong data\n"); printf 693 usertests.c printf(1, "unlinkread write failed\n"); printf 698 usertests.c printf(1, "unlinkread ok\n"); printf 706 usertests.c printf(1, "linktest\n"); printf 713 usertests.c printf(1, "create lf1 failed\n"); printf 717 usertests.c printf(1, "write lf1 failed\n"); printf 723 usertests.c printf(1, "link lf1 lf2 failed\n"); printf 729 usertests.c printf(1, "unlinked lf1 but it is still there!\n"); printf 735 usertests.c printf(1, "open lf2 failed\n"); printf 739 usertests.c printf(1, "read lf2 failed\n"); printf 745 usertests.c printf(1, "link lf2 lf2 succeeded! oops\n"); printf 751 usertests.c printf(1, "link non-existant succeeded! oops\n"); printf 756 usertests.c printf(1, "link . lf1 succeeded! oops\n"); printf 760 usertests.c printf(1, "linktest ok\n"); printf 775 usertests.c printf(1, "concreate test\n"); printf 789 usertests.c printf(1, "concreate create %s failed\n", file); printf 809 usertests.c printf(1, "concreate weird file %s\n", de.name); printf 813 usertests.c printf(1, "concreate duplicate file %s\n", de.name); printf 823 usertests.c printf(1, "concreate not enough files in directory listing\n"); printf 831 usertests.c printf(1, "fork failed\n"); printf 852 usertests.c printf(1, "concreate ok\n"); printf 862 usertests.c printf(1, "linkunlink test\n"); printf 867 usertests.c printf(1, "fork failed\n"); printf 888 usertests.c printf(1, "linkunlink ok\n"); printf 898 usertests.c printf(1, "bigdir test\n"); printf 903 usertests.c printf(1, "bigdir create failed\n"); printf 914 usertests.c printf(1, "bigdir link failed\n"); printf 926 usertests.c printf(1, "bigdir unlink failed"); printf 931 usertests.c printf(1, "bigdir ok\n"); printf 939 usertests.c printf(1, "subdir test\n"); printf 943 usertests.c printf(1, "subdir mkdir dd failed\n"); printf 949 usertests.c printf(1, "create dd/ff failed\n"); printf 956 usertests.c printf(1, "unlink dd (non-empty dir) succeeded!\n"); printf 961 usertests.c printf(1, "subdir mkdir dd/dd failed\n"); printf 967 usertests.c printf(1, "create dd/dd/ff failed\n"); printf 975 usertests.c printf(1, "open dd/dd/../ff failed\n"); printf 980 usertests.c printf(1, "dd/dd/../ff wrong content\n"); printf 986 usertests.c printf(1, "link dd/dd/ff dd/dd/ffff failed\n"); printf 991 usertests.c printf(1, "unlink dd/dd/ff failed\n"); printf 995 usertests.c printf(1, "open (unlinked) dd/dd/ff succeeded\n"); printf 1000 usertests.c printf(1, "chdir dd failed\n"); printf 1004 usertests.c printf(1, "chdir dd/../../dd failed\n"); printf 1008 usertests.c printf(1, "chdir dd/../../dd failed\n"); printf 1012 usertests.c printf(1, "chdir ./.. failed\n"); printf 1018 usertests.c printf(1, "open dd/dd/ffff failed\n"); printf 1022 usertests.c printf(1, "read dd/dd/ffff wrong len\n"); printf 1028 usertests.c printf(1, "open (unlinked) dd/dd/ff succeeded!\n"); printf 1033 usertests.c printf(1, "create dd/ff/ff succeeded!\n"); printf 1037 usertests.c printf(1, "create dd/xx/ff succeeded!\n"); printf 1041 usertests.c printf(1, "create dd succeeded!\n"); printf 1045 usertests.c printf(1, "open dd rdwr succeeded!\n"); printf 1049 usertests.c printf(1, "open dd wronly succeeded!\n"); printf 1053 usertests.c printf(1, "link dd/ff/ff dd/dd/xx succeeded!\n"); printf 1057 usertests.c printf(1, "link dd/xx/ff dd/dd/xx succeeded!\n"); printf 1061 usertests.c printf(1, "link dd/ff dd/dd/ffff succeeded!\n"); printf 1065 usertests.c printf(1, "mkdir dd/ff/ff succeeded!\n"); printf 1069 usertests.c printf(1, "mkdir dd/xx/ff succeeded!\n"); printf 1073 usertests.c printf(1, "mkdir dd/dd/ffff succeeded!\n"); printf 1077 usertests.c printf(1, "unlink dd/xx/ff succeeded!\n"); printf 1081 usertests.c printf(1, "unlink dd/ff/ff succeeded!\n"); printf 1085 usertests.c printf(1, "chdir dd/ff succeeded!\n"); printf 1089 usertests.c printf(1, "chdir dd/xx succeeded!\n"); printf 1094 usertests.c printf(1, "unlink dd/dd/ff failed\n"); printf 1098 usertests.c printf(1, "unlink dd/ff failed\n"); printf 1102 usertests.c printf(1, "unlink non-empty dd succeeded!\n"); printf 1106 usertests.c printf(1, "unlink dd/dd failed\n"); printf 1110 usertests.c printf(1, "unlink dd failed\n"); printf 1114 usertests.c printf(1, "subdir ok\n"); printf 1123 usertests.c printf(1, "bigwrite test\n"); printf 1129 usertests.c printf(1, "cannot create bigwrite\n"); printf 1136 usertests.c printf(1, "write(%d) ret %d\n", sz, cc); printf 1144 usertests.c printf(1, "bigwrite ok\n"); printf 1152 usertests.c printf(1, "bigfile test\n"); printf 1157 usertests.c printf(1, "cannot create bigfile"); printf 1163 usertests.c printf(1, "write bigfile failed\n"); printf 1171 usertests.c printf(1, "cannot open bigfile\n"); printf 1178 usertests.c printf(1, "read bigfile failed\n"); printf 1184 usertests.c printf(1, "short read bigfile\n"); printf 1188 usertests.c printf(1, "read bigfile wrong data\n"); printf 1195 usertests.c printf(1, "read bigfile wrong total\n"); printf 1200 usertests.c printf(1, "bigfile test ok\n"); printf 1209 usertests.c printf(1, "fourteen test\n"); printf 1212 usertests.c printf(1, "mkdir 12345678901234 failed\n"); printf 1216 usertests.c printf(1, "mkdir 12345678901234/123456789012345 failed\n"); printf 1221 usertests.c printf(1, "create 123456789012345/123456789012345/123456789012345 failed\n"); printf 1227 usertests.c printf(1, "open 12345678901234/12345678901234/12345678901234 failed\n"); printf 1233 usertests.c printf(1, "mkdir 12345678901234/12345678901234 succeeded!\n"); printf 1237 usertests.c printf(1, "mkdir 12345678901234/123456789012345 succeeded!\n"); printf 1241 usertests.c printf(1, "fourteen ok\n"); printf 1247 usertests.c printf(1, "rmdot test\n"); printf 1249 usertests.c printf(1, "mkdir dots failed\n"); printf 1253 usertests.c printf(1, "chdir dots failed\n"); printf 1257 usertests.c printf(1, "rm . worked!\n"); printf 1261 usertests.c printf(1, "rm .. worked!\n"); printf 1265 usertests.c printf(1, "chdir / failed\n"); printf 1269 usertests.c printf(1, "unlink dots/. worked!\n"); printf 1273 usertests.c printf(1, "unlink dots/.. worked!\n"); printf 1277 usertests.c printf(1, "unlink dots failed!\n"); printf 1280 usertests.c printf(1, "rmdot ok\n"); printf 1288 usertests.c printf(1, "dir vs file\n"); printf 1292 usertests.c printf(1, "create dirfile failed\n"); printf 1297 usertests.c printf(1, "chdir dirfile succeeded!\n"); printf 1302 usertests.c printf(1, "create dirfile/xx succeeded!\n"); printf 1307 usertests.c printf(1, "create dirfile/xx succeeded!\n"); printf 1311 usertests.c printf(1, "mkdir dirfile/xx succeeded!\n"); printf 1315 usertests.c printf(1, "unlink dirfile/xx succeeded!\n"); printf 1319 usertests.c printf(1, "link to dirfile/xx succeeded!\n"); printf 1323 usertests.c printf(1, "unlink dirfile failed!\n"); printf 1329 usertests.c printf(1, "open . for writing succeeded!\n"); printf 1334 usertests.c printf(1, "write . succeeded!\n"); printf 1339 usertests.c printf(1, "dir vs file OK\n"); printf 1348 usertests.c printf(1, "empty file name\n"); printf 1353 usertests.c printf(1, "mkdir irefd failed\n"); printf 1357 usertests.c printf(1, "chdir irefd failed\n"); printf 1373 usertests.c printf(1, "empty file name OK\n"); printf 1384 usertests.c printf(1, "fork test\n"); printf 1395 usertests.c printf(1, "fork claimed to work 1000 times!\n"); printf 1401 usertests.c printf(1, "wait stopped early\n"); printf 1407 usertests.c printf(1, "wait got too many\n"); printf 1411 usertests.c printf(1, "fork test OK\n"); printf 1421 usertests.c printf(stdout, "sbrk test\n"); printf 1430 usertests.c printf(stdout, "sbrk test failed %d %x %x\n", i, a, b); printf 1438 usertests.c printf(stdout, "sbrk test fork failed\n"); printf 1444 usertests.c printf(stdout, "sbrk test failed post-fork\n"); printf 1457 usertests.c printf(stdout, "sbrk test failed to grow big address space; enough phys mem?\n"); printf 1467 usertests.c printf(stdout, "sbrk could not deallocate\n"); printf 1472 usertests.c printf(stdout, "sbrk deallocation produced wrong address, a %x c %x\n", a, c); printf 1480 usertests.c printf(stdout, "sbrk re-allocation failed, a %x c %x\n", a, c); printf 1485 usertests.c printf(stdout, "sbrk de-allocation didn't really deallocate\n"); printf 1492 usertests.c printf(stdout, "sbrk downsize failed, a %x c %x\n", a, c); printf 1501 usertests.c printf(stdout, "fork failed\n"); printf 1505 usertests.c printf(stdout, "oops could read %x = %x\n", a, *a); printf 1515 usertests.c printf(1, "pipe() failed\n"); printf 1539 usertests.c printf(stdout, "failed sbrk leaked memory\n"); printf 1546 usertests.c printf(stdout, "sbrk test OK\n"); printf 1568 usertests.c printf(stdout, "validate test\n"); printf 1584 usertests.c printf(stdout, "link should not succeed\n"); printf 1589 usertests.c printf(stdout, "validate ok\n"); printf 1599 usertests.c printf(stdout, "bss test\n"); printf 1602 usertests.c printf(stdout, "bss test failed\n"); printf 1606 usertests.c printf(stdout, "bss test ok\n"); printf 1625 usertests.c printf(stdout, "bigarg test\n"); printf 1627 usertests.c printf(stdout, "bigarg test ok\n"); printf 1632 usertests.c printf(stdout, "bigargtest: fork failed\n"); printf 1638 usertests.c printf(stdout, "bigarg test failed!\n"); printf 1653 usertests.c printf(1, "fsfull test\n"); printf 1663 usertests.c printf(1, "writing %s\n", name); printf 1666 usertests.c printf(1, "open %s failed\n", name); printf 1677 usertests.c printf(1, "wrote %d bytes\n", total); printf 1695 usertests.c printf(1, "fsfull test finished\n"); printf 1709 usertests.c printf(1, "usertests starting\n"); printf 1712 usertests.c printf(1, "already ran user tests -- rebuild fs.img\n"); printf 29 wc.c printf(1, "wc: read error\n"); printf 32 wc.c printf(1, "%d %d %d %s\n", l, w, c, name); printf 47 wc.c printf(1, "wc: cannot open %s\n", argv[i]);