From c930ac6256cc785a0c9703d0512f31db0838ab30 Mon Sep 17 00:00:00 2001 From: Alessandro Rubini <rubini@gnudd.com> Date: Thu, 1 Nov 2012 13:44:35 +0100 Subject: [PATCH] zio-sys: nbits by default is 8 * ssize Signed-off-by: Alessandro Rubini <rubini@gnudd.com> --- zio-sys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zio-sys.c b/zio-sys.c index e06c3eb..77dcf46 100644 --- a/zio-sys.c +++ b/zio-sys.c @@ -1639,9 +1639,9 @@ static uint16_t __get_nbits(struct zio_channel *chan) if (zdev->zattr_set.std_zattr[ZATTR_NBITS].value) return zdev->zattr_set.std_zattr[ZATTR_NBITS].value; - pr_err("%s: device \"%s\" lacks mandatory \"resolution bit\" attribute", + pr_warn("%s: device \"%s\" lacks \"resolution bit\" attribute\n", __func__, chan->cset->zdev->head.name); - return 0; + return chan->cset->ssize * BITS_PER_BYTE; } /* * chan_register -- GitLab