Put a printf under #ifdef DIAGNOSTIC.
Sponsored by: DARPA & NAI Labs.
This commit is contained in:
parent
d71dec96bf
commit
430e557d3d
@ -250,9 +250,11 @@ g_io_request(struct bio *bp, struct g_consumer *cp)
|
||||
case BIO_SETATTR:
|
||||
/* XXX: Should ideally check for (cp->ace == 0) */
|
||||
if ((cp->acw == 0)) {
|
||||
#ifdef DIAGNOSTIC
|
||||
printf("setattr on %s mode (%d,%d,%d)\n",
|
||||
cp->provider->name,
|
||||
cp->acr, cp->acw, cp->ace);
|
||||
#endif
|
||||
g_io_deliver(bp, EPERM);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user