summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeHackEd <[email protected]>2017-09-25 13:38:27 -0400
committerBrian Behlendorf <[email protected]>2017-09-25 10:38:27 -0700
commit7e98073379353a05498ac5a2f1a5df2a2257d6b0 (patch)
tree85a67d6550f9a93165705bbafdde94ee4da697bb
parent3fd3e56cfd543d7d7a1bf502bfc0db6e24139668 (diff)
Fix printk() calls missing log level
Reviewed-by: George Melikov <[email protected]> Reviewed-by: Giuseppe Di Natale <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: DHE <[email protected]> Closes #6672
-rw-r--r--module/zfs/vdev_disk.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/zfs/vdev_disk.c b/module/zfs/vdev_disk.c
index 87cc2c892..788503bcd 100644
--- a/module/zfs/vdev_disk.c
+++ b/module/zfs/vdev_disk.c
@@ -99,7 +99,7 @@ static void
vdev_disk_error(zio_t *zio)
{
#ifdef ZFS_DEBUG
- printk("ZFS: zio error=%d type=%d offset=%llu size=%llu "
+ printk(KERN_WARNING "ZFS: zio error=%d type=%d offset=%llu size=%llu "
"flags=%x\n", zio->io_error, zio->io_type,
(u_longlong_t)zio->io_offset, (u_longlong_t)zio->io_size,
zio->io_flags);
@@ -173,8 +173,9 @@ vdev_elevator_switch(vdev_t *v, char *elevator)
strfree(argv[2]);
#endif /* HAVE_ELEVATOR_CHANGE */
if (error)
- printk("ZFS: Unable to set \"%s\" scheduler for %s (%s): %d\n",
- elevator, v->vdev_path, device, error);
+ printk(KERN_NOTICE "ZFS: Unable to set \"%s\" scheduler"
+ " for %s (%s): %d\n", elevator, v->vdev_path, device,
+ error);
}
/*