]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/exportfs/io.c
exportfs: revert e524e8d65a7573c46d7beb49e77bfc2d55a5563d
[plan9front.git] / sys / src / cmd / exportfs / io.c
index 2309168a84f5575b8ae8efc51e44a8064e2c623c..ad1d7154b782d596510db15e4e79db1e76b3cbdd 100644 (file)
@@ -49,7 +49,7 @@ io(void)
                if(convM2S(r->buf, n, &r->work) != n)
                        fatal("convM2S format error");
 
-               DEBUG(2, "%F\n", &r->work);
+               DEBUG(DFD, "%F\n", &r->work);
                (fcalls[r->work.type])(r);
        }
 }
@@ -69,7 +69,7 @@ reply(Fcall *r, Fcall *t, char *err)
        else 
                t->type = r->type + 1;
 
-       DEBUG(2, "\t%F\n", t);
+       DEBUG(DFD, "\t%F\n", t);
 
        data = malloc(messagesize);     /* not mallocz; no need to clear */
        if(data == nil)
@@ -224,7 +224,7 @@ freefile(File *f)
 
        while(--f->ref == 0){
                freecnt++;
-               DEBUG(2, "free %s\n", f->name);
+               DEBUG(DFD, "free %s\n", f->name);
                /* delete from parent */
                parent = f->parent;
                if(parent->child == f)
@@ -250,7 +250,7 @@ file(File *parent, char *name)
        char *path;
        File *f;
 
-       DEBUG(2, "\tfile: 0x%p %s name %s\n", parent, parent->name, name);
+       DEBUG(DFD, "\tfile: 0x%p %s name %s\n", parent, parent->name, name);
 
        path = makepath(parent, name);
        if(patternfile != nil && excludefile(path)){
@@ -429,17 +429,17 @@ uniqueqid(Dir *d)
        }
        path = d->qid.path;
        while(qidexists(path)){
-               DEBUG(2, "collision on %s\n", d->name);
+               DEBUG(DFD, "collision on %s\n", d->name);
                /* collision: find a new one */
                ncollision++;
                path &= QIDPATH;
                ++newqid;
                if(newqid >= (1<<16)){
-                       DEBUG(2, "collision wraparound\n");
+                       DEBUG(DFD, "collision wraparound\n");
                        newqid = 1;
                }
                path |= newqid<<48;
-               DEBUG(2, "assign qid %.16llux\n", path);
+               DEBUG(DFD, "assign qid %.16llux\n", path);
        }
        qidcnt++;
        q = emallocz(sizeof(Qidtab));
@@ -472,7 +472,7 @@ fatal(char *s, ...)
                postnote(PNPROC, m->pid, "kill");
 
        if(s != nil) {
-               DEBUG(2, "%s\n", buf);
+               DEBUG(DFD, "%s\n", buf);
                sysfatal("%s", buf);    /* caution: buf could contain '%' */
        } else
                exits(nil);