aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/smugfs
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2009-07-29 11:28:00 -0400
committerRuss Cox <rsc@swtch.com>2009-07-29 11:28:00 -0400
commita4e2af8fffa7057cec8927e1cdabc03d5520ba1c (patch)
tree43065b0d2e2d3f69df21809376da694c3a854a73 /src/cmd/smugfs
parent5400bd239cbde2f545a5c61079c2b784af6fa6f2 (diff)
downloadplan9port-a4e2af8fffa7057cec8927e1cdabc03d5520ba1c.tar.gz
plan9port-a4e2af8fffa7057cec8927e1cdabc03d5520ba1c.tar.bz2
plan9port-a4e2af8fffa7057cec8927e1cdabc03d5520ba1c.zip
smugfs: delete debugging prints
http://codereview.appspot.com/98066
Diffstat (limited to 'src/cmd/smugfs')
-rw-r--r--src/cmd/smugfs/fs.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cmd/smugfs/fs.c b/src/cmd/smugfs/fs.c
index 91af23d2..a57b96d1 100644
--- a/src/cmd/smugfs/fs.c
+++ b/src/cmd/smugfs/fs.c
@@ -132,7 +132,6 @@ void
closeupload(Upload *u)
{
lock(&u->lk);
-fprint(2, "close %p from %p: %d\n", u, getcallerpc(&u), u->ref);
if(--u->ref > 0){
unlock(&u->lk);
return;
@@ -179,7 +178,6 @@ getuploadindex(SmugFid *sf, int *index)
if(u->ref > 0 && !u->uploaded && u->album == sf->album && (*index)-- == 0){
qunlock(&uploadlock);
u->ref++;
-fprint(2, "bump %p from %p: %d\n", u, getcallerpc(&sf), u->ref);
unlock(&u->lk);
return u;
}
@@ -202,7 +200,6 @@ getuploadname(SmugFid *sf, char *name)
if(u->ref > 0 && !u->uploaded && u->album == sf->album && strcmp(name, u->name) == 0){
qunlock(&uploadlock);
u->ref++;
-fprint(2, "bump %p from %p: %d\n", u, getcallerpc(&sf), u->ref);
unlock(&u->lk);
return u;
}
@@ -232,7 +229,6 @@ uploader(void *v)
qunlock(&uploadlock);
doupload(u);
closeupload(u);
-fprint(2, "done %d\n", u->ref);
did = 1;
qlock(&uploadlock);
}else
@@ -254,7 +250,6 @@ kickupload(Upload *u)
close(u->fd);
u->fd = -1;
u->ref++;
-fprint(2, "kick %p from %p: %d\n", u, getcallerpc(&u), u->ref);
u->ready = 1;
unlock(&u->lk);
qlock(&uploadlock);