Untangle g_print_bio(), silencing Coverity.
Found with: Coverity Prevent CID: 3566, 3567
This commit is contained in:
parent
ae834fc9ba
commit
7ce513a52a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208992
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user