Add a DEBUG define in forktest -- DEBUG 0 is better for mtrace/mscan

上级 e1f31a94
......@@ -6,7 +6,8 @@
#include "user.h"
#include "xv6-mtrace.h"
#define N 1000
#define N 100
#define DEBUG 0
void
printf(int fd, char *s, ...)
......@@ -47,7 +48,7 @@ forktest(void)
exit();
}
if(n == N){
if(DEBUG && n == N){
printf(1, "fork claimed to work N times!\n", N);
exit();
}
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论