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)
commita356e42620271deb5afb6570606154d160783bba
treed6a7fcc0cc7da081ebdaf2f73bafa06b5a373b23
parent3a0175096423856d145e210527271c9eec188a5f
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