bonding: fix a parameter name in error message
authorNicolas de Pesloüan <nicolas.2p.debian@free.fr>
Wed, 7 Oct 2009 21:10:36 +0000 (14:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Oct 2009 21:10:36 +0000 (14:10 -0700)
When parsing module parameters, bond_check_params() erroneously use
'xor_mode' as the name of a module parameter in an error message.

The right name for this parameter is 'xmit_hash_policy'.

Signed-off-by: Nicolas de Pesloüan <nicolas.2p.debian@free.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c

index 19d57d5..05877cb 100644 (file)
@@ -4706,7 +4706,8 @@ static int bond_check_params(struct bond_params *params)
                if ((bond_mode != BOND_MODE_XOR) &&
                    (bond_mode != BOND_MODE_8023AD)) {
                        pr_info(DRV_NAME
-                              ": xor_mode param is irrelevant in mode %s\n",
+                               ": xmit_hash_policy param is irrelevant in"
+                               " mode %s\n",
                               bond_mode_name(bond_mode));
                } else {
                        xmit_hashtype = bond_parse_parm(xmit_hash_policy,