]> git.baikalelectronics.ru Git - kernel.git/commit
dm mpath: print more useful warnings in multipath_message()
authorJose Castillo <jcastillo@redhat.com>
Wed, 29 Jan 2014 16:52:45 +0000 (17:52 +0100)
committerMike Snitzer <snitzer@redhat.com>
Thu, 27 Mar 2014 20:56:25 +0000 (16:56 -0400)
commit630a92e82508dc1c42cfc34dc9db1a4b6b71c2ba
treed6a7fcc0cc7da081ebdaf2f73bafa06b5a373b23
parent6264a2c36516c5970e973a882e50c036fdb99ab9
dm mpath: print more useful warnings in multipath_message()

The warning message "Unrecognised multipath message received" is
displayed in two different situations in multipath_message(): when the
number of arguments passed is invalid and when the string passed in
argv[0] is not recognized.

Make it easier to identify where the problem is by making these warnings
more specific with additional context for each case.

Signed-off-by: Jose Castillo <jcastillo@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-mpath.c