diff options
Diffstat (limited to 'sys/fs/udf')
-rw-r--r-- | sys/fs/udf/udf_vnops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/udf/udf_vnops.c b/sys/fs/udf/udf_vnops.c index 848bb5c..5827483 100644 --- a/sys/fs/udf/udf_vnops.c +++ b/sys/fs/udf/udf_vnops.c @@ -1074,7 +1074,7 @@ udf_readatoffset(struct udf_node *node, int *size, int offset, struct buf **bp, *size = min(*size, MAXBSIZE); if ((error = udf_readlblks(udfmp, sector, *size, bp))) { - printf("udf_readlblks returned %d\n", error); + printf("warning: udf_readlblks returned error %d\n", error); return (error); } @@ -1138,7 +1138,7 @@ udf_bmap_internal(struct udf_node *node, uint32_t offset, daddr_t *sector, uint3 lsector = (offset >> udfmp->bshift) + ((struct short_ad *)(icb))->pos; - *max_size = GETICBLEN(short_ad, icb) - offset; + *max_size = GETICBLEN(short_ad, icb); break; case 1: @@ -1162,7 +1162,7 @@ udf_bmap_internal(struct udf_node *node, uint32_t offset, daddr_t *sector, uint3 lsector = (offset >> udfmp->bshift) + ((struct long_ad *)(icb))->loc.lb_num; - *max_size = GETICBLEN(long_ad, icb) - offset; + *max_size = GETICBLEN(long_ad, icb); break; case 3: |