diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2014-10-13 18:55:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-13 20:18:26 -0400 |
commit | da169607ae17c4340fe2ab286130741266709b07 (patch) | |
tree | 54ed1569c19f5e8d373b95c1871ab4a37f9015b8 /drivers/net/wireless/libertas/mesh.c | |
parent | 71dca95d5cf5ece6c1bee8e625e23c16025952c7 (diff) |
wireless: libertas: print esaped string via %*pE
Instead of custom approach this allows to print escaped strings via
recently added kernel extension: %*pE.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: "John W . Linville" <linville@tuxdriver.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net/wireless/libertas/mesh.c')
-rw-r--r-- | drivers/net/wireless/libertas/mesh.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/libertas/mesh.c b/drivers/net/wireless/libertas/mesh.c index 01a67f62696f..d0c881dd5846 100644 --- a/drivers/net/wireless/libertas/mesh.c +++ b/drivers/net/wireless/libertas/mesh.c | |||
@@ -93,7 +93,6 @@ static int lbs_mesh_config(struct lbs_private *priv, uint16_t action, | |||
93 | { | 93 | { |
94 | struct cmd_ds_mesh_config cmd; | 94 | struct cmd_ds_mesh_config cmd; |
95 | struct mrvl_meshie *ie; | 95 | struct mrvl_meshie *ie; |
96 | DECLARE_SSID_BUF(ssid); | ||
97 | 96 | ||
98 | memset(&cmd, 0, sizeof(cmd)); | 97 | memset(&cmd, 0, sizeof(cmd)); |
99 | cmd.channel = cpu_to_le16(chan); | 98 | cmd.channel = cpu_to_le16(chan); |
@@ -122,9 +121,9 @@ static int lbs_mesh_config(struct lbs_private *priv, uint16_t action, | |||
122 | default: | 121 | default: |
123 | return -1; | 122 | return -1; |
124 | } | 123 | } |
125 | lbs_deb_cmd("mesh config action %d type %x channel %d SSID %s\n", | 124 | lbs_deb_cmd("mesh config action %d type %x channel %d SSID %*pE\n", |
126 | action, priv->mesh_tlv, chan, | 125 | action, priv->mesh_tlv, chan, priv->mesh_ssid_len, |
127 | print_ssid(ssid, priv->mesh_ssid, priv->mesh_ssid_len)); | 126 | priv->mesh_ssid); |
128 | 127 | ||
129 | return __lbs_mesh_config_send(priv, &cmd, action, priv->mesh_tlv); | 128 | return __lbs_mesh_config_send(priv, &cmd, action, priv->mesh_tlv); |
130 | } | 129 | } |