]> git.proxmox.com Git - mirror_zfs.git/commit
vdev_disk_error() prints ASCII SOH to debug log
authorLOLi <loli10K@users.noreply.github.com>
Fri, 21 Sep 2018 16:42:42 +0000 (18:42 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 21 Sep 2018 16:42:42 +0000 (09:42 -0700)
commitdda5500853c736aca9ad8c14f7d22cd9d9f9fb36
tree6d83723dc6d3befaeb2c676d6170311c5cf4aef3
parent9d489ab3a8bc866f3658c332230aee02b1b2012d
vdev_disk_error() prints ASCII SOH to debug log

Currently vdev_disk_error() prepends its messages sent to the internal
ZFS debug log with KERN_WARNING, which is currently defined as follows:

   #define KERN_SOH      "\001"
   #define KERN_WARNING  KERN_SOH "4"

Since "\001" (ASCII Start Of Header) is not printable this results in
weird characters displayed when inspecting the debug log. This commit
simply removes this superfluous prefix passed to zfs_dbgmsg().

Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Richard Laager <rlaager@wiktel.com>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7936
module/zfs/vdev_disk.c