aboutsummaryrefslogtreecommitdiff
path: root/src/libventi/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libventi/cache.c')
-rw-r--r--src/libventi/cache.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libventi/cache.c b/src/libventi/cache.c
index 99b46ed8..796d8349 100644
--- a/src/libventi/cache.c
+++ b/src/libventi/cache.c
@@ -397,8 +397,9 @@ vtcacheglobal(VtCache *c, uchar score[VtScoreSize], int type)
if(chattyventi)
fprint(2, "cached read error for %V\n", score);
if(vttracelevel)
- fprint(2, "vtcacheglobal %V %d => cache read error\n", score, typ werrstr("venti i/o error");
+ fprint(2, "vtcacheglobal %V %d => cache read error\n", score, type);
vtblockput(b);
+ werrstr("venti i/o error");
return nil;
}
if(vttracelevel)
@@ -449,7 +450,8 @@ vtcacheglobal(VtCache *c, uchar score[VtScoreSize], int type)
b->iostate = BioVenti;
b->nlock = 1;
if(vttracelevel)
- fprint(2, "vtcacheglobal %V %d => loaded into cache; returning\n", score, ty return b;
+ fprint(2, "vtcacheglobal %V %d => loaded into cache; returning\n", score, type);
+ return b;
}
/*