]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
libnvdimm, btt: clean up warning and error messages
authorVishal Verma <vishal.l.verma@intel.com>
Tue, 5 Sep 2017 20:35:39 +0000 (14:35 -0600)
committerDan Williams <dan.j.williams@intel.com>
Thu, 7 Sep 2017 19:06:58 +0000 (12:06 -0700)
commit86652d2eb347080a991968c9d68708dc010ac56c
treeaa0daf1e264051fd00736dfa8f71f416a4530c45
parentaed9eb1b21e85a846c805bc299bbb9d039d4a95b
libnvdimm, btt: clean up warning and error messages

Convert all WARN* style messages to dev_WARN, and for errors in the IO
paths, use dev_err_ratelimited. Also remove some BUG_ONs in the IO path
and replace them with the above - no need to crash the machine in case
of an unaligned IO.

Cc: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/btt.c