diff options
-rw-r--r-- | sys/geom/geom_io.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/geom/geom_io.c b/sys/geom/geom_io.c index 1090c0b..b145441 100644 --- a/sys/geom/geom_io.c +++ b/sys/geom/geom_io.c @@ -779,19 +779,18 @@ g_print_bio(struct bio *bp) return; case BIO_READ: cmd = "READ"; + break; case BIO_WRITE: - if (cmd == NULL) - cmd = "WRITE"; + cmd = "WRITE"; + break; case BIO_DELETE: - if (cmd == NULL) - cmd = "DELETE"; - printf("%s[%s(offset=%jd, length=%jd)]", pname, cmd, - (intmax_t)bp->bio_offset, (intmax_t)bp->bio_length); - return; + cmd = "DELETE"; + break; default: cmd = "UNKNOWN"; printf("%s[%s()]", pname, cmd); return; } - /* NOTREACHED */ + printf("%s[%s(offset=%jd, length=%jd)]", pname, cmd, + (intmax_t)bp->bio_offset, (intmax_t)bp->bio_length); } |