staging: rtl8192*: display ESSIDs using %pE
authorJ. Bruce Fields <bfields@redhat.com>
Wed, 10 Jul 2019 22:59:34 +0000 (18:59 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2019 12:38:52 +0000 (14:38 +0200)
Everywhere else in the kernel ESSIDs are printed using %pE, and I can't
see why there should be an exception here.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Link: https://lore.kernel.org/r/1562799574-13315-1-git-send-email-bfields@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib.h
drivers/staging/rtl8192u/ieee80211/ieee80211.h

index 2dd57e88276e27e64044e5b4874967de2a9b1fdd..096254e422b3accb74baf684b6aa1f585eb105b3 100644 (file)
@@ -2132,7 +2132,7 @@ static inline const char *escape_essid(const char *essid, u8 essid_len)
                return escaped;
        }
 
-       snprintf(escaped, sizeof(escaped), "%*pEn", essid_len, essid);
+       snprintf(escaped, sizeof(escaped), "%*pE", essid_len, essid);
        return escaped;
 }
 
index d369634690152e3b221318fea079aeb8227dd89b..3963a08b9eb2c6ba30f7746d53131d356116f17e 100644 (file)
@@ -2426,7 +2426,7 @@ static inline const char *escape_essid(const char *essid, u8 essid_len)
                return escaped;
        }
 
-       snprintf(escaped, sizeof(escaped), "%*pEn", essid_len, essid);
+       snprintf(escaped, sizeof(escaped), "%*pE", essid_len, essid);
        return escaped;
 }